Skip to content

fzhnf/data-structure

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Structure in C

About

This repo is just for me learning data structures and algorithms in C.

Usage

I assume you are using Linux or WSL.

  1. Clone this repo git clone https://github.com/rvyhvn/data-structure
  2. After the repo has cloned into your machine, go to the repo directory by executing cd data-structure
  3. Compile the files into binary using Makefile by executing make

The make command will generate the main binary file, which you can use to interact with the sorting algorithms and data structures.

  • Run the sorting algorithms by using ./main sort <sorting_algorithm>. Available sorting algorithms: bubble, heap, insertion, selection, merge, quick
  • Run the data structures by using ./main <command> [options]. Available data structures (command): stack, bag, queue

Note: the program will tell you what to do with the commands.

Usage Example

Usage example for data structure: ./main stack push stack.csv 1

Usage example for sorting algorithm: ./main sort bubble

About

Data Structure in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.3%
  • Makefile 3.7%