Skip to content

This repo contains all algorithms I'm learning and practising.

Notifications You must be signed in to change notification settings

Dhamu785/Data-Structures-and-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains all algorithms I'm learning and practising.

Data structur

Data Types Built-in User defined 1 USer defined 2
Integer List Stack Queue
String Tuple Queue -
Boolean Set Linked List -
Float Dictionary Tree -

Stack

  • Real world example : Plate washing and using
  • LIFO - Last in First Out
  • push and pop
  • Used in undo and redo operations
  • Refer the python script on GitHub.

Queue

  • Real world examples : Standing in a que.
  • FIFO - First in First Out
  • Adding elements is called enqueue.
  • Removing elements is called dequeue.
  • Used in linear operations
    • Uploading images
    • Printing documents
  • Refer the python script on GitHub.

Priority Queue

  • Real world examples : queue in a hospital.
  • Highest value low priority or Highest value high priority.
  • First sort the list then proceed.

Linked List

  • Real work example : Treasure hunt game, relay running.

Pros

  • Dynamic
  • It is used to implement stack, queue and graphs.

Cons

  • Requires more memory.
  • Cannot be accessed randomly.

Types

  • Singly linked list
  • Double linked list
  • Circular linked list

Singly linked list

  • Each node has single reference of another node.

About

This repo contains all algorithms I'm learning and practising.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages