i would like to know what kind of sample data i can insert to make the quick-sort go from normal to worst case performance. Can i use the following data 1,2,3,1,4,5,1,8,1,2 to make the quick-sort go haywire. The net explains the theory but does not shows how it can be done. I would like to know what kind of data can i use for testing to show quick-sort worst case performance.
I am a naive implemented quicksort alogorithm in c++. My only problem is what kind of data can use to show it.