> For the complete documentation index, see [llms.txt](https://42-guide.gitbook.io/42-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://42-guide.gitbook.io/42-guide/core-curriculum/rank-02/push-swap/useful-sources.md).

# Useful sources

Mechanical Turk Algorithms for Push Swap

The **Mechanical Turk algorithm** is a heuristic-based sorting strategy that draws inspiration from human-like decision-making and local iterative operations. While not typically categorized as a traditional sorting algorithm, this approach combines basic stack operations (such as push, pop, swap, and rotate) to progressively improve the order of elements. Rather than relying on global sorting insights, Mechanical Turk algorithms focus on making local adjustments and using trial-and-error to move the stack closer to a sorted state.\
\
[\[here is a link for better description\]](https://medium.com/@ayogun/push-swap-c1f5d2d41e97)

#### And below the link you can find another useful link, where possible to learn about data structures and more about quick sort

#### [\[here is a link for source\]](https://push_swap.simple.ink/)

Below the link for push swap visualizer.

[\[push swap visualizer\]](https://github.com/stevebalk/push-swap-clicker)

Below is link to my source code

[\[see the code\]](https://github.com/mukhammadsiddiq/42Berlin-Guideline/tree/main/Push%20Swap)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://42-guide.gitbook.io/42-guide/core-curriculum/rank-02/push-swap/useful-sources.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.
