First Move (11~18) - Code, Learn, Build
🧭 Career CompassDashboardProgress
Loading...
First Move (11~18) - Code, Learn, Build

Structured, level-based technology learning paths from foundational exploration to industry mastery.

Learning Domains

  • Python Programming (Active)
  • Computer Science Core
  • Web Development
  • AI & Machine Learning

Platform Architecture

  • Level-Based Progression
  • Decoupled Content Schema
  • Modular Code Execution Engine
  • Curated Official Resources

© 2026 First Move (11~18) • CODE • LEARN • BUILD. Built with Next.js App Router.

Readability & Accessibility First

← Data Structures & Algorithms|Level 3: Sorting, Heaps & Dynamic Programming

5. Sorting Algorithms (MergeSort, QuickSort) & Binary Heaps

Lesson 5 of 7
Saved Locally (Guest)
Progress
0%

Sorting Algorithms (MergeSort, QuickSort) & Binary Heaps

Compare O(N log N) sorting algorithms (MergeSort, QuickSort), and build Binary Min-Heap Priority Queues supporting O(log N) insertion/extraction.

Sorting Complexity & Heap Structures

### Sorting & Priority Queues - **MergeSort**: Divide-and-conquer algorithm guaranteeing $O(N log N)$ worst-case runtime using $O(N)$ auxiliary space. - **QuickSort**: In-place partitioning algorithm with $O(N log N)$ average runtime. - **Binary Min-Heap**: Complete binary tree satisfying the heap property (parent node $le$ child nodes), allowing $O(1)$ min lookup and $O(log N)$ extraction.
💻 Ready to test your knowledge with code?
Solve the hands-on coding exercise in the interactive code editor.