What technique gives the best and worst performance for a single test case?

What technique gives the best performance for a single test case?Why?What technique gives the worst performance for a single test case?Why?

What technique gives the best performance ON THE AVERAGE for a all test cases?Why?Based on answers above, what technique is the most flexible?Your requested to submit:A zip fie containing the following:Your fully commented source file The executable compiled from your source code. The executable should be compatible with a Windows based PC.A Word file containing the screen shot of all your program runs, and the answers to the 4 questions above.please  reply  me  , then i will mail you the project picture of the related question .Thank you.