Can I hire someone to write code for my dissertation (if I've designed the algorithm)?
Misrepresenting the hired work as your own would be inappropriate, but the following strike me as safe conditions for academic subcontracting:


Have your advisor's consent (thanks mdiener)
Find a suitable programmer and get them to understand the algorithm
Verify and document that the program operates correctly
Disclose everything in both thesis and defense