Skip to content

Instantly share code, notes, and snippets.

View cmrmahesh's full-sized avatar

Maheswara Reddy Chennuru cmrmahesh

View GitHub Profile
@cmrmahesh
cmrmahesh / 1.c
Last active November 6, 2016 17:26
Parallel Processing Lab
#include<stdio.h>
#include<string.h>
#include "mpi.h"
int main(int argc,char* argv){
int rnk,src,dest=0,tag=0,p;
char mesg[100010];
MPI_Status stat;
MPI_Init(&argc,&argv);
MPI_Comm_rank(MPI_COMM_WORLD,&rnk);
MPI_Comm_size(MPI_COMM_WORLD,&p);
@cmrmahesh
cmrmahesh / 1.c
Created November 7, 2016 09:23
Parallel Processing New
#include<stdio.h>
#include<string.h>
#include "mpi.h"
int main(int argc,char *argv[])
{
int my_rank;
int p;
int source;
int dest;
@cmrmahesh
cmrmahesh / AssemblyLineScheduling.cpp
Created November 10, 2016 07:14
Advanced Algorithms Lab
#include<stdio.h>
#include<conio.h>
#define SZ 20
int k;
main()
{
int i,j,m ,F;
int e[3],a[SZ][SZ],t[SZ][SZ],x[3],n;
printf("This program is for 2 line and maximum 20 station at each line.\n");
printf("Enter number of station \n");