Skip to Content
Introduction to Algorithms
book

Introduction to Algorithms

by Cuantum Technologies LLC
June 2024
Intermediate to advanced
294 pages
6h 34m
English
Packt Publishing
Content preview from Introduction to Algorithms

Chapter 6 Summary

We commenced this enlightening journey by delving into the world of sorting algorithms, key tools in computer science used to rearrange a list of items in a particular order, be it ascending or descending. These algorithms are crucial as they have a wide array of applications across different domains.

The first algorithm we dissected was the Bubble Sort, an easy-to-understand but computationally expensive algorithm with a time complexity of O(n^2) in its worst-case scenario. This algorithm works by repeatedly swapping adjacent elements that are in the wrong order, causing larger elements to "bubble up" to their correct positions.

Our journey then took us to the Selection Sort, another O(n^2) algorithm. This one works slightly ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Algorithms

Learning Algorithms

George Heineman
Algorithms, 4th Edition

Algorithms, 4th Edition

Robert Sedgewick, Kevin Wayne
Graph Algorithms

Graph Algorithms

Mark Needham, Amy E. Hodler

Publisher Resources

ISBN: 9781836203872