Giter VIP home page Giter VIP logo

arizansari80 / c_generic_data_structure Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 48 KB

Generic Data Structure Library for C language and a great way to learn pointer concept in c and c++

License: Apache License 2.0

C 100.00%
essence-java-string-in-c set-data-structure-c generic-set-data-structure-in-c advance-string-library-in-c binary-search-tree qsort orderedset orderedmap bst-delete-operation pointers-in-c

c_generic_data_structure's Introduction

c_generic_data_structure

The C Generic Data Structure Library

This will allow user to create Data Structure like Sets, Maps, Linked List, Stack, Queues etc in a generalized form.

The Sets Data Structure is implemented as an Ordered Set using a Binary Search Tree (BST) with log(n) times for all the operation insert, search

Same Way the Maps is also implemented as an Ordered Map using a BST.

Got the implement idea after using and analyze the working of the qsort function, that can be used to sort any kind of data type , whether it's a primitive data type or user defined datatype by taking a comparator function as one of it's argument an argument, this function can sort any type of data in any way. For reference of qsort see this https://en.wikipedia.org/wiki/Qsort

For Sample Program Visit https://github.com/arizansari80/c_generic_data_structure/blob/master/main.c

Explanation of Set Init Function and it's argument

Set.getSet(sizeof the elements, comparator function, display function)

For more of the sample and for any issues found please do comment in the section.

c_generic_data_structure's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ariz-ansari

c_generic_data_structure's Issues

Issue in Generic Set Data Structure

there is issue in creating a Set of structure having variable size i.e. a set of structure that contains pointer. Can you please provide me a sample of creating set of structure that contains pointer

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.