In the case of Alakazam you would search your deck, but you would not be able to place an Alakazam onto Alakazam. It is considered an illegal evolution.
This is straight from the Professor Forums:
Everyone happy now?![Stick Out Tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
This is straight from the Professor Forums:
PokePop said:Illegal evolutions are explicitly forbidden by the Rule Book.
There are also some old rulings in the original Compendium about Clefable using an evolution attack to evolve into something else and that it was not allowed.
You would get to search your deck, though.
Everyone happy now?