.. _book_fig_chapter2_fig_sort_scaling: Sort Algorithm Scaling ---------------------- Figure 2.2. The scaling of the quicksort algorithm. Plotted for comparison are lines showing O(N) and O(N log N) scaling. The quicksort algorithm falls along the O(N log N) line, as expected. .. image:: ../images/chapter2/fig_sort_scaling_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_sort_scaling.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_sort_scaling.py :lines: 10- .. raw:: html
:download:`[download source: fig_sort_scaling.py] ` .. raw:: html