Giter Site home page Giter Site logo

python-data-structures-and-algorithms's Introduction

data-structures-and-algorithms

Data Structures:

Arrays:

Ordered collections of elements of the same type, accessed by index. Efficient for random access but can be slow for insertions and deletions.

Lists:

Built-in mutable sequences in Python, used to store collections of items. They are flexible and easy to modify.

Linked Lists:

Sequences of nodes, where each node contains data and a link to the next node. Efficient for insertions and deletions, but not for random access.

Stacks:

LIFO (Last-In, First-Out) data structures, like a stack of plates. Used for function calls, undo/redo operations, and backtracking.

Queues:

FIFO (First-In, First-Out) data structures, like a line at a store. Used for task scheduling, buffering, and resource management.

Trees:

Hierarchical data structures with a root node and child nodes. Used for representing file systems, decision trees, and organizing data with parent-child relationships.

Graphs:

Networks of nodes (vertices) connected by edges. Used for representing social networks, maps, and relationships between entities.

Dictionaries:

Unordered collections of key-value pairs, used for fast lookups by key.

Sets:

Unordered collections of unique elements, used for membership testing and removing duplicates

Algorithms:

Searching Algorithms:

Finding a specific element within a data structure. Examples: Linear Search, Binary Search.

Sorting Algorithms:

Arranging elements in a specific order. Examples: Bubble Sort, Selection Sort, Insertion Sort, Merge Sort, Quick Sort, Heap Sort.

Recursion:

A technique where a function calls itself to solve smaller subproblems. Used for tree traversals, divide-and-conquer algorithms, and mathematical calculations.

Graph Algorithms:

Algorithms for traversing, searching, and analyzing graphs. Examples: Breadth-First Search (BFS), Depth-First Search (DFS), Dijkstra's Algorithm, Prim's Algorithm.

Dynamic Programming:

Solving problems by breaking them down into smaller overlapping subproblems. Used for optimization problems, sequence alignment, and string parsing.

contents

1. Array

2. Binary Search Tree

Technologies Used

Pragramming language

Python

frameworks

python-data-structures-and-algorithms's People

Contributors

nishadiss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.