Skip to content

About

Implementation of Data Structures learned at university.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Data Structures in C

This repository contains my implementations of various data structures in C, as part of my university course. It's a work in progress, and I'll be adding new structures and refining existing ones as I learn more.

Class 1: Remembering C

This section contains introductory exercises to refresh basic C programming concepts.

  • ascii_table.c: A simple program to print the ASCII table.
  • exercicios_aula1.c: A collection of exercises from the first class. // Note that this file is in portuguese and I am too lazy to translate. It is not important though, as it's not a Data Structure.

Class 2: Remembering Archives and Pointers

This section focuses on file manipulation and pointers.

  • archives.c: Exercises involving file I/O operations.
  • arraysorting.c: A program that sorts an array, demonstrating pointer usage.
  • file.txt: A sample text file for the file I/O exercises.

Class 3: malloc

This section introduces dynamic memory allocation.

  • memory_allocation.c: Exercises demonstrating the use of malloc and free.

Class 4: ArrayList

This section contains an implementation of a dynamic array (ArrayList).

  • arraylist.c / arraylist.h: The source code and header for the ArrayList implementation.

Class 5: Linked List

This section contains an implementation of a linked list.

  • linked_list.c / linked_list.h: The source code and header for the Linked List implementation.

Class 6: Circular List and Sorted List

This section contains implementations of a circular list and a sorted list.

  • circular-list/: An implementation of a circular list (circular_list.c, circular_list.h).
  • sorted-list/: An implementation of a sorted list (sorted_list.c, sorted_list.h).

Class 7: Doubly Linked List

This section contains an implementation of a doubly linked list.

  • dll.c / dll.h: The source code and header for the Doubly Linked List implementation.

Class 8: Queues

This section contains different implementations of a Queue data structure.

  • array-based-queue/: An implementation of a queue using a dynamic array (abq.c, abq.h).
  • linked-list-based-queue/: An implementation of a queue using a singly linked list (ll_queue.c, llq.h).
  • double-link-list-based-queue/: An implementation of a queue using a doubly linked list (dll_queue.c, dllq.h).

Future Implementations

I plan to implement the following data structures:

  • Stacks
  • Trees (Binary, AVL, etc.)
  • Hash Tables
  • Graphs

... and more!

About

Implementation of Data Structures learned at university.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages