Program for AVL Tree in C

Here you will get program for AVL tree in C. An AVL (Adelson-Velskii and Landis) tree is a height balance tree. These trees are binary search trees in which the height of two siblings are not permitted to differ by more than one. i.e. [Height of the left subtree – Height of right subtree] <= 1. A …

Program for AVL Tree in C Read More »

C Program for Addition of two Sparse Matrices

#include<stdio.h> #include<stdlib.h> #define MAX 20 void printsparse(int b[MAX][3]); void readsparse(int b[MAX][3]); void addsparse(int b1[MAX][3],int b2[MAX][3],int b3[MAX][3]); void main() {     int b1[MAX][3],b2[MAX][3],b3[MAX][3];     readsparse(b1);     readsparse(b2);     addsparse(b1,b2,b3);     printsparse(b3); } void readsparse(int b[MAX][3]) {     int i,t,m,n;     printf(“nEnter no. of rows and columns:”);     scanf(“%d%d”,&m,&n);     printf(“No. of non-zero triples:”);     scanf(“%d”,&t);     …

C Program for Addition of two Sparse Matrices Read More »

History of Java Language

The Java language project was started by James Gosling, Mike Sheridan, Chris Warth, Patrick Naughton and Ed Frank in June 1991 at Sun Microsystems. Many more people contributed for this project. They are Bill Joy, Jonathan Payne, Frank Yellin, Arthur van Hoff and Tim Lindholm. The initial aim of the project was to create a …

History of Java Language Read More »