Showing posts with label Hash Table. Show all posts
Showing posts with label Hash Table. Show all posts

C Program - Hash Table to store information about a student

How to write a C Program to create a Hash table taking in student name, class and total marks; display students' details based on class; search based on student's name and Display highest marks in the class in C Programming Language ?

Hash tables are commonly used because of their speed searching takes on average constant time, whereas trees take logarithmic time, and linked lists searching takes linear time.

https://en.wikipedia.org/wiki/Hash_table

Solution:
/* Hash table taking in student name, class and total marks; display students' details based on class; search based on student's name and Display highest marks in the class */
//Implementation of a Hash Table to store information about a student.