# Spaces which have the same homology groups, the same cohomology groups, but have different cohomology rings?

Does anyone have an example of two spaces which have the same homology groups, the same cohomology groups, but have different cohomology rings?

is it possible?

-
sounds like a homework problem to me. –  Ian Agol Mar 2 '11 at 17:59
it isn't. I am teaching myself the material. –  rhl Mar 2 '11 at 19:40
Slightly different example I quite like: the two partial flag manifolds for $SO(5)$ have the same cohomology groups (free abelian, in even degrees), the same rational cohomology rings, and different integer cohomology rings. –  Allen Knutson Mar 4 '11 at 4:07

A very standard example would be $S^2\vee S^4$ and $\mathbf{C}P^2$.
math.stackexchange.com might be better for you. Also, this is the first example I learned. It satisfies all of the requirements listed in your question. The ring structure on $S^2 \vee S^4$ is trivial, but not on $\mathbb{C}P^2$. –  Sean Tilson Mar 2 '11 at 21:43
There are also standard examples in which both spaces are compact manifolds. For instance, if $n \geq 1$ is an integer and $Q_n \subset \mathbb{P}^{2n+2}$ is a non-singular quadric, then $Q_n$ has the same integral homology and cohomology groups as $\mathbb{P}^{2n+1}$, but the cohomology rings are different.