8.1.11

Quick Sort Algorithm

Test yourself on Quick Sort Algorithm

Test your knowledge with free interactive questions on Seneca — used by over 10 million students.

Quick Sort Algorithm

The quick sort algorithm is a sorting algorithm that uses an element known as a pivot and works around it by dividing the elements.

Divide and conquer paradigm

Divide and conquer paradigm

  • Quick sort is based on the divide and conquer paradigm.
  • Quick sort consists of two phases:
    • 1- Partition phase
    • 2- Sorting phase
Rearranging the array

Rearranging the array

  • Quick sort selects an element as a pivot.
  • It rearranges the array in a way that all the elements to the left of the pivot will be smaller than the pivot.
  • All the elements to the right will be greater than the pivot.
    • Then quick sort recursively quick sort left and right subarrays.
Stopping criteria

Stopping criteria

  • Stopping criteria:
    • 1- Every element is an old pivot
    • 2- A list of length 1
Jump to other topics
1

Components of a Computer

2

Software & Software Development

3

Exchanging Data

4

Data Types, Data Structures & Algorithms

5

Legal, Moral, Cultural & Ethical Issues

6

Elements of Computational Thinking

6.1

Thinking Abstractly

6.2

Thinking Ahead

6.3

Thinking Procedurally

6.4

Thinking Logically

6.5

Thinking Concurrently

7

Problem Solving & Programming

8

Algorithms

Practice questions on Quick Sort Algorithm

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
  2. 2
Answer all questions on Quick Sort Algorithm

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium