Backtracking Algorithms Using Stack Data Structure

Applications of Stack Data Structure (Part VII)

Sushmita Singh
Code  Writers

--

Photo by Philipp Katzenberger on Unsplash

Stack is a linear data structure that follows either LIFO (Last In First Out) or FILO (First In Last Out) principle. This means that the last element that is inserted is the first element to be removed.

Table of Content

· Applications of Stack
· Backtracking
· Backtracking Algorithm
· Backtracking Using Stacks
· Examples of Backtracking Algorithms
#1. Depth-First Search (DFS):
#2. N-Queens Problem:
#3. Maze Solving
#4. Sudoku Solving
· Takeaway
· Stay In Touch

Applications of Stack

The applications of the stack data structure are as follows:

  1. Evaluating expressions
  2. Expression conversion
  3. Balanced parentheses
  4. Function call stacks
  5. Undo/redo operations
  6. Backtracking algorithms
  7. Parsing

--

--

Sushmita Singh
Code  Writers

Writer || Coder || Book Lover. Helping you evolve into the ultimate version of yourself. https://sushmitasingh.carrd.co/