\newline Logo
Left arrow icon.
Go to Previous Chapter
Go to Previous Chapter
SECTION 3Graphs. Depth-First Search.
Course Thumbnail of JavaScript Algorithms.JavaScript Algorithms
  • CHAPTER 1
    Join Our Discord
    • SECTION 1.1Join Our Discord
    • SECTION 1.2Introduction
    • SECTION 1.3How To Read This Book
  • CHAPTER 2
    Priority Queue
    • SECTION 2.1Application
    • SECTION 2.2Basic Operations
    • SECTION 2.3Usage Example
    • SECTION 2.4Implementation
    • SECTION 2.5Complexities
    • SECTION 2.6Problems Examples
    • SECTION 2.7Quiz
    • SECTION 2.8References
  • CHAPTER 3
    Graphs. Depth-First Search.
    • SECTION 3.1The Task
    • SECTION 3.2The Algorithm
    • SECTION 3.3Application
    • SECTION 3.4Usage Example
    • SECTION 3.5Implementation
    • SECTION 3.6Complexities
    • SECTION 3.7Problems Examples
    • SECTION 3.8Quiz
    • SECTION 3.9References
  • CHAPTER 4
    Graphs
    • SECTION 4.1Application
    • SECTION 4.2Graph Representation
    • SECTION 4.3Basic Operations
    • SECTION 4.4Usage Example
    • SECTION 4.5Implementation
    • SECTION 4.6Operations Time Complexity
    • SECTION 4.7Problems Examples
    • SECTION 4.8Quiz
    • SECTION 4.9References
  • CHAPTER 5
    Dijkstra's Algorithm
    • SECTION 5.1The Task
    • SECTION 5.2The Algorithm
    • SECTION 5.3Application
    • SECTION 5.4Usage Example
    • SECTION 5.5Implementation
    • SECTION 5.6Complexities
    • SECTION 5.7Problems Examples
    • SECTION 5.8References
  • CHAPTER 6
    Changelog
    • SECTION 6.1Revision 3 (07-02-2020)
    • SECTION 6.2Revision 2 (11-25-2019)
    • SECTION 6.3Revision 1 (10-29-2019)
  • CHAPTER 7
    Sets. Cartesian Product.
    • SECTION 7.1Sets
    • SECTION 7.2Cartesian Product
    • SECTION 7.3Applications
    • SECTION 7.4Usage Example
    • SECTION 7.5Implementation
    • SECTION 7.6Complexities
    • SECTION 7.7Problems Examples
    • SECTION 7.8Quiz
    • SECTION 7.9References
  • CHAPTER 8
    Algorithms and Their Complexities
    • SECTION 8.1What is an Algorithm
    • SECTION 8.2Algorithm Complexity
    • SECTION 8.3Big O Notation
    • SECTION 8.4Quiz
  • CHAPTER 9
    Search. Binary Search.
    • SECTION 9.1The Task
    • SECTION 9.2The Algorithm
    • SECTION 9.3Algorithm Complexities
    • SECTION 9.4Application
    • SECTION 9.5Usage Example
    • SECTION 9.6Implementation
    • SECTION 9.7Problems Examples
    • SECTION 9.8Quiz
    • SECTION 9.9References
  • CHAPTER 10
    Appendix C: Data Structures Operations Complexities
    • SECTION 10.1Common Data Structures Operations Complexities
    • SECTION 10.2Graph Operations Complexities
    • SECTION 10.3Heap Operations Complexities
  • CHAPTER 11
    Graphs. Breadth-First Search.
    • SECTION 11.1The Task
    • SECTION 11.2The Algorithm
    • SECTION 11.3Application
    • SECTION 11.4Usage Example
    • SECTION 11.5Implementation
    • SECTION 11.6Complexities
    • SECTION 11.7Problems Examples
    • SECTION 11.8Quiz
    • SECTION 11.9References
  • CHAPTER 12
    Trees. Depth-First Search.
    • SECTION 12.1The Task
    • SECTION 12.2The Algorithm
    • SECTION 12.3Usage Example
    • SECTION 12.4Implementation
    • SECTION 12.5Complexities
    • SECTION 12.6Problems Examples
    • SECTION 12.7Quiz
    • SECTION 12.8References
  • CHAPTER 13
    Stack
    • SECTION 13.1Stack and its common operations
    • SECTION 13.2Applications
    • SECTION 13.3Usage Example
    • SECTION 13.4Implementation
    • SECTION 13.5Complexities
    • SECTION 13.6Problems Examples
    • SECTION 13.7Quiz
    • SECTION 13.8References
  • CHAPTER 14
    Fibonacci Number
    • SECTION 14.1Applications
    • SECTION 14.2Code
    • SECTION 14.3Problems Examples
    • SECTION 14.4References
  • CHAPTER 15
    Sets. Power Set.
    • SECTION 15.1Usage Example
    • SECTION 15.2Implementation
    • SECTION 15.3Complexities
    • SECTION 15.4Problems Examples
    • SECTION 15.5Quiz
    • SECTION 15.6References
  • CHAPTER 16
    Linked List
    • SECTION 16.1Linked list and its common operations
    • SECTION 16.2Applications
    • SECTION 16.3Implementation
    • SECTION 16.4Complexities
    • SECTION 16.5Problems Examples
    • SECTION 16.6Quiz
    • SECTION 16.7References
  • CHAPTER 17
    Trees. Breadth-First Search.
    • SECTION 17.1The Task
    • SECTION 17.2The Algorithm
    • SECTION 17.3Usage Example
    • SECTION 17.4Implementation
    • SECTION 17.5Complexities
    • SECTION 17.6Problems Examples
    • SECTION 17.7Quiz
    • SECTION 17.8References
  • CHAPTER 18
    Is a power of two
    • SECTION 18.1The Task
    • SECTION 18.2Naive solution
    • SECTION 18.3Bitwise solution
    • SECTION 18.4Problems Examples
    • SECTION 18.5Quiz
    • SECTION 18.6References
  • CHAPTER 19
    Queue
    • SECTION 19.1Queue and its common operations
    • SECTION 19.2When to use a Queue
    • SECTION 19.3Usage Example
    • SECTION 19.4Implementation
    • SECTION 19.5Complexities
    • SECTION 19.6Problems Examples
    • SECTION 19.7Quiz
    • SECTION 19.8References
  • CHAPTER 20
    Binary Heap
    • SECTION 20.1Application
    • SECTION 20.2Basic Operations
    • SECTION 20.3Usage Example
    • SECTION 20.4Implementation
    • SECTION 20.5Complexities
    • SECTION 20.6Problems Examples
    • SECTION 20.7Quiz
    • SECTION 20.8References
  • CHAPTER 21
    Sets. Combinations.
    • SECTION 21.1Combinations Without Repetitions
    • SECTION 21.2Combinations With Repetitions
    • SECTION 21.3Application
    • SECTION 21.4Usage Example
    • SECTION 21.5Implementation
    • SECTION 21.6Problems Examples
    • SECTION 21.7Quiz
    • SECTION 21.8References
  • CHAPTER 22
    Appendix B: Big O Times Comparison
    • CHAPTER 23
      Sorting: Quicksort
      • SECTION 23.1The Task
      • SECTION 23.2The Algorithm
      • SECTION 23.3Usage Example
      • SECTION 23.4Implementation
      • SECTION 23.5Complexities
      • SECTION 23.6Problems Examples
      • SECTION 23.7Quiz
      • SECTION 23.8References
    • CHAPTER 24
      Factorial
      • SECTION 24.1Intro
      • SECTION 24.2Applications
      • SECTION 24.3Recursion
      • SECTION 24.4Code
      • SECTION 24.5Problems Examples
      • SECTION 24.6Quiz
      • SECTION 24.7References
    • CHAPTER 25
      Primality Test
      • SECTION 25.1Applications
      • SECTION 25.2Code
      • SECTION 25.3Problems Examples
      • SECTION 25.4Quiz
      • SECTION 25.5References
    • CHAPTER 26
      Bit Manipulation
      • SECTION 26.1Applications
      • SECTION 26.2Code
      • SECTION 26.3Problems Examples
      • SECTION 26.4Quiz
      • SECTION 26.5References
    • CHAPTER 27
      Search. Linear Search.
      • SECTION 27.1The Task
      • SECTION 27.2The Algorithm
      • SECTION 27.3Application
      • SECTION 27.4Usage Example
      • SECTION 27.5Implementation
      • SECTION 27.6Complexity
      • SECTION 27.7Problems Examples
      • SECTION 27.8Quiz
      • SECTION 27.9References
    • CHAPTER 28
      Appendix A: Quiz Answers
      • CHAPTER 29
        Hash Table
        • SECTION 29.1Hash Function
        • SECTION 29.2Collision Resolution
        • SECTION 29.3Implementation
        • SECTION 29.4Operations Time Complexity
        • SECTION 29.5Problems Examples
        • SECTION 29.6Quiz
        • SECTION 29.7References
      • CHAPTER 30
        Sets. Permutations.
        • SECTION 30.1Permutations With Repetitions
        • SECTION 30.2Permutations Without Repetitions
        • SECTION 30.3Application
        • SECTION 30.4Usage Example
        • SECTION 30.5Implementation
        • SECTION 30.6Problems Examples
        • SECTION 30.7Quiz
        • SECTION 30.8References
      • CHAPTER 31
        Appendix D: Array Sorting Algorithms Complexities
        • CHAPTER 32
          Binary Search Tree (BST)
          • SECTION 32.1Tree
          • SECTION 32.2Binary Tree
          • SECTION 32.3Binary Search Tree
          • SECTION 32.4Application
          • SECTION 32.5Basic Operations
          • SECTION 32.6Usage Example
          • SECTION 32.7Implementation
          • SECTION 32.8Operations Time Complexity
          • SECTION 32.9Problems Examples
          • SECTION 32.10Quiz
          • SECTION 32.11References
        Right arrow icon.
        Go to Next Chapter
        Go to Next Chapter
        SECTION 5Dijkstra's Algorithm
        • Go Pro
        • Log In

        Graphs

        Table of Contents
        • Section 4.1Application
        • Section 4.2Graph Representation
        • Books
        • JavaScript Algorithms
        • Graphs
        • Go To Previous Lesson
          Graphs. Depth-First Search.
          Graphs. Depth-First Search.
        • Go To Next Lesson
          Dijkstra's Algorithm
          Dijkstra's Algorithm