# 3. Sorting Algorithms

## Contents

1. [Abstraction](https://emory.gitbook.io/dsa-java/sorting-algorithms/abstraction)
2. [Comparison-based Sort](https://emory.gitbook.io/dsa-java/sorting-algorithms/3.2.-comparison-based-sort)
3. [Divide & Conquer Sort](https://emory.gitbook.io/dsa-java/sorting-algorithms/divide-and-conquer-sort)
4. [Distribution-based Sort](https://emory.gitbook.io/dsa-java/sorting-algorithms/distribution-based-sort)
5. [Quiz](https://emory.gitbook.io/dsa-java/sorting-algorithms/exercises)
6. [Homework](https://emory.gitbook.io/dsa-java/sorting-algorithms/homework)

## Resources

* Main: [src/main/java/edu/emory/cs/sort](https://github.com/emory-courses/dsa-java/tree/master/src/main/java/edu/emory/cs/sort)
* Test: [src/test/java/edu/emory/cs/sort](https://github.com/emory-courses/dsa-java/tree/master/src/test/java/edu/emory/cs/sort)

## References

* Comparison-based Algorithms
  * [Selection Sort](https://en.wikipedia.org/wiki/Selection_sort) $$\rightarrow$$ [Heap Sort](https://en.wikipedia.org/wiki/Heapsort)
  * [Insertion Sort](https://en.wikipedia.org/wiki/Insertion_sort) $$\rightarrow$$ [Shell Sort](https://en.wikipedia.org/wiki/Shellsort)
* Divide and Conquer Algorithms
  * [Merge Sort](https://en.wikipedia.org/wiki/Merge_sort) $$\rightarrow$$ [Tim Sort](https://en.wikipedia.org/wiki/Timsort)
  * [Quick Sort](https://en.wikipedia.org/wiki/Quicksort) $$\rightarrow$$ [Intro Sort](https://en.wikipedia.org/wiki/Introsort)
* Distribution-based Algorithms
  * [Bucket Sort](https://en.wikipedia.org/wiki/Bucket_sort)
  * [Radix Sort](https://en.wikipedia.org/wiki/Radix_sort)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://emory.gitbook.io/dsa-java/sorting-algorithms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
