#include<stdio.h> #define MAXNODES 50 #define MAX1 150 #define INFINITY 5000 int weight[MAXNODES][MAXNODES],i,j,distance...
PROGRAM IN LINUX C FOR PRIM'S ALGORITHM (FINDING THE SHORTEST PATH IN GRAPH)
#include<stdio.h> #define IN 99 int dist[10],path[10]; int extract_min(int Q[], int n) { int i,temp[10],t=0,pos; for(i...
PROGRAM IN LINUX C FOR QUICK SORT
#include<stdio.h> void quicksort(int [10],int,int); int main(){ int x[20],size,i; printf("Enter Number of Items...
PROGRAM IN LINUX C FOR BUBBLE SORT
#include<stdio.h> int main(){ int s,temp,i,j,a[20]; printf("Enter total numbers of elements: "); scanf(...
PROGRAM IN LINUX C FOR MATRIX MULTIPLICATION
# include "stdio.h" main() { int m1[10][10],i,j,k,m2[10][10],mult[10][10],r1,c1,r2,c2; printf("For frist ma...
RMI PROGRAM FOR OBJECT SERIALZATION
Serialization is the process of converting an object into a sequence of bits so that it can be persisted on a storage medium (such as ...
RMI PROGRAM TO SIMPLE CALCULATOR
Interface import java.rmi.Remote; public interface calculator extends Remote { public long add(long a, long b) throws java.r...