60 likes | 196 Views
Parallelism. A new way of thinking about solving problems for your generation. WE HAVE BEEN LIVING IN SERIAL WORLD WITH SERIAL THINKING. http://www.youtube.com/watch?v=ZrJeYFxpUyQ. Help Bill Gates get dressed. What else: write an algorithm!. Pre-condition: Mr. Gates in pajama gown
E N D
Parallelism A new way of thinking about solving problems for your generation.
WE HAVE BEEN LIVING IN SERIALWORLD WITH SERIAL THINKING http://www.youtube.com/watch?v=ZrJeYFxpUyQ
What else: write an algorithm! • Pre-condition: Mr. Gates in pajama gown • Post-condition: Mr. Gates dressed for work Fasten belt Put on left sock Put on right sock Put on undershirt Put on shirt Put on right shoe Remove pajama gown Put on left shoe Put on underpants Tuck shirt into pants Put on pants
A serial algorithm • Pre-condition: Mr. Gates in pajama gown • Post-condition: Mr. Gates dressed for work Remove pajama gown Put on underpants Put on undershirt Put on right sock Put on left sock Put on shirt Put on pants Tuck shirt into pants Fasten belt Put on left shoe Put on right shoe
A parallel algorithm – with the least # of steps • Pre-condition: Mr. Gates in pajama gown • Post-condition: Mr. Gates dressed for work Remove pajama gown Put on underpants Put on right sock Put on undershirt Put on left sock Put on shirt Put on pants Tuck shirt into pants Put on left shoe Fasten belt Put on right shoe