Hi guys, may please I get a good analogy PLEASE why choosing the pivot of quicksort would effectively affect my time complexity? what about if I choose the pivot randomly , what happen to my time complexity?! **I know it would be changed .. but I don't know why .. from equations yeah it would be changed .. I want a good analogy sense for feeling comfortable while solving .. **
I'm trying to imagine if I have a cake but not circular it's rectangle and a specific piece of cake that I want is found on "the middle" of the rectangle of the cake .. in two cases I get the same time to search on that specific piece cake ..
thanks alot !!
I'm trying to imagine if I have a cake but not circular it's rectangle and a specific piece of cake that I want is found on "the middle" of the rectangle of the cake .. in two cases I get the same time to search on that specific piece cake ..
thanks alot !!
Last edited: