Skip to content

acitate/DSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brief

Basic implementaion of various data structures and algorithms in C++ and C, done as practice. WIP

Test it!

  1. Clone the repository.
git clone https://github.com/acitate/DSA.git
  1. Change to root directory.
cd DSA
  1. modify main.cpp.
  2. Build and run.
make
./output/main

Todo

  • Implement stack data structure.

    • Define LLStack struct for linked list based implementation.

      • Implement 'stack_ll_create' function.
      • Implement 'stack_ll_push' function.
      • Implement 'stack_ll_peek' function.
      • Implement 'stack_ll_pop' function.
      • Implement 'stack_ll_is_empty' function.
      • Implement 'stack_ll_size' function.
    • Define ArrayStack struct for array based implementation.

      • Implement 'stack_arr_create' function.
      • Implement 'stack_arr_push' function.
      • Implement 'stack_arr_peek' function.
      • Implement 'stack_arr_pop' function.
      • Implement 'stack_arr_is_empty' function.
      • Implement 'stack_arr_size' function.
  • Implement queue data structure

    • Define LLQueue struct for linked list based implementation.

      • Implement 'queue_ll_create' function.
      • Implement 'queue_ll_enqueue' function.
      • Implement 'queue_ll_dequeue' function.
      • Implement 'queue_ll_peek' function.
      • Implement 'queue_ll_length' function.
    • Define ArrayQueue struct for array based implementation.

      • Implement 'queue_arr_create' function.
        • Implement 'queue_arr_enqueue' function.
        • Implement 'queue_arr_dequeue' function.
        • Implement 'queue_arr_peek' function.
        • Implement 'queue_arr_length' function.
  • Define priority queue data structure.

    • Implement 'min_heapify' function.
    • Implement 'max_heapify' function.
    • Implement 'get_item' function.
    • Implement 'insert_item' function.
    • Implement 'remove_item' function.
    • Implement 'edit_item' function.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •