2D Array

Easy Adjacency Matrix Representation of Graph

Adjacency Matrix Code Adjacency matrix code using C is a way to represent a graph as a 2D array. The array is of size V x V, where V is the number of vertices in the graph. If there is an edge from vertex i to vertex j, then the entry adj[i][j] is set to …

Easy Adjacency Matrix Representation of Graph Read More »

Easy Adjacency List Representation of Graph

Adjacency List Code Adjacency List is one of the best way of representing a graph through computer code. In this code, connection in between two adjacent nodes is represented in the adjacency list. This adjacency list is represented using Linked List and one linked list is created for each node\’s adjacent node connection and representation. …

Easy Adjacency List Representation of Graph Read More »

Easy Original to Sparse Matrix Conversion Code

Original to Sparse Matrix In computer science and mathematics, a sparse matrix is a particular data structure that is used to store and operate matrices with a large number of zero or empty entries in an efficient manner. Sparse matrices minimize memory consumption by storing only the non-zero elements along with their row and column …

Easy Original to Sparse Matrix Conversion Code Read More »

Easy Circular Queue using Linked List code

Code for implementing Circular Queue using LinkedĀ  List For learning pointer, dynamic memory allocation, linked list, you should go through this code. This is Code for implementing Circular Queue using Linked List. In C code practice, this Code for implementing Circular Queue using Linked List logic plays a very important role. So I have designed …

Easy Circular Queue using Linked List code Read More »

Easy Binary Tree Creation using Stack code

Binary Tree Creation using Stack code This code is for Binary tree creation using stack. In this code first created node will be treated as root node. After that another function insert() will be called for adding the child nodes. Every time one node created and sent to stack for keeping track of that node. …

Easy Binary Tree Creation using Stack code Read More »

Easy Binary Tree Creation using Queue code

Binary Tree Creation using Queue code This code is for Binary tree creation using queue. In this code first created node will be treated as root node. After that another function insert() will be called for adding the child nodes. Every time one node created and sent to queue for keeping track of that node. …

Easy Binary Tree Creation using Queue code Read More »

Easy Doubly Linked List Code

Doubly Linked List Code This code is designed to implement Doubly Linked List concept. In this code almost all the possible operations are implemented using separate functions. Each function is designed to implement one accessibility technique of doubly linked listĀ  during insertion or deletion. Here we have designed two display functions for two different way …

Easy Doubly Linked List Code Read More »

Easy Polynomial Addition using Linked List code

Code for Polynomial Addition using Linked List This code is designed to implement Polynomial Addition using Linked List. In this code two polynomial form is taken as input from the user to represent a polynomial then using Polynomial addition technique these two polynomial is added. This Polynomial addition using linked list code will help to …

Easy Polynomial Addition using Linked List code Read More »

Easy Linked List Merging code

Code for Linked List Merging This code is designed for Linked List Merging. This code will be used for merging two sorted linked list. If entered linked lists are not sorted then using Bubble Sort we will sort them first then they will be merged. This Linked List Merging code will help to understand basics …

Easy Linked List Merging code Read More »

Easy Bubble Sort Using Linked List Code

Code for Bubble Sort using Linked List This code is designed to implement Bubble Sort Using Linked List. In this code we have created a linked list then displayed the linked list. After that we have performed Bubble Sort Using Linked List and then displayed the sorted linked list. This code will help an programmer …

Easy Bubble Sort Using Linked List Code Read More »