Action disvalue

Classified in Computers

Written at on English with a size of 1.46 KB.

Algorithm  CountDuplicate (Array A)

explain why and how the worst case for quick sort does happen?

the worst case happens when the array is already sorted or the all elements are the same and the pivot is selected from the left of right most edge of the array at every step.

Which of 2 sorting algorithms selection sort or bubble sort performs fewer swaps in worst case

selection sort performs fewer swaps, selection sort and bubble sort at worst case O(n^2)

1. Nature of life is to grow  2. Order is present everywhere  3. Life is found in layers  4. Outer depends on Inner5. Seek the highest  6. Rest and activity  7. Enjoy greater efficiency and accomplish more 8. Every action has a reaction  9. Purification leads to progress  10. Field of all possibilities is the source of all solutions

11. Thought leads to action – achievement–fulfillment  12. Knowledge is gained from inside and outside  13. Knowledge is structured in consciousness 14. Harmony exists in diversity  15. Wholeness is contained in every part  16. Whole is greater than sum of the parts

Entradas relacionadas: