Saturday, October 6, 2012

An algorithm's real-time readiness ratio (RTR)


real-time ratio=average-case running time / worst-case running time


bubblesortheapsortinsertionmergesortquicksort
bestnnlognnnlognnlogn
averagen^2 nlognn^2 nlognnlogn
worstn^2 nlognn^2 nlognn^2

http://www.youtube.com/watch?v=WRekXblcQn8&feature=relmfu

No comments:

Post a Comment