Question: solution of k map in c

Himmat Sarvaiya
solution of k map in c
1 Answer(s)      5 years and 6 months ago
Posted in : PHP

write a program in c to solve k-map with digital circuit

August 31, 2014 at 12:32 PM

/*C program that implements a basic K-MAP of 3 variables This is just a basic program . You need to take the logic further to implement an efficient algorithm. If ur unable to get the logic plz ask and i'll upload the complete program till then keep working.

Written By: KALYANA SRINIVAS */

# include

int i,j; int temp[8]; int matrix[8]={0,1,2,3,4,5,6,7}; void main() {
printf("\nEnter the function where K-MAP is to be defined: "); for(i=0;i<8;i++) { scanf("%d",&temp[i]); } for(i=0,j=0;i<8;j++) { if(temp[i]==matrix[j]) { matrix[j]=1; i++; } } for(i=0;i<8;i++) { if(temp[0]==1||temp[1]==1) { matrix[1]=1; } else { matrix[1]=0; } if(matrix[i]!=0 && matrix[i]!= 1) { matrix[i]=0; } printf("%d\t",matrix[i]); } puts(""); if(matrix[0]==1 && matrix[1]==1 && matrix[2]==1 && matrix[3]==1 && matrix[4]==1 && matrix[5]==1 && matrix[6]==1 && matrix[7]==1) puts("Result=1"); if(matrix[1]==1 && matrix[2]==1 && matrix[3]==1) puts("Result= !X!Y + !XY!Z"); getch(); }

solution of k map in c
solution of k map in c  write a program in c to solve k-map with digital circuit
program on k-map with graphical circuit in c
program on k-map with graphical circuit in c  write a program in c to solve k-map with digital circuit
Solution to C prog
Solution to C prog   Hi, Pls any body help, why the following prog crashing while running. #include<stdio.h> #include<conio.h> int main(){ int n,*fact(int *n); printf("Enter the number:"); scanf
Site map - C Tutorials
| Site Map | Business Software Services India Tutorial Section   C Tutorials  | Java Tutorials | PHP Tutorials  | Linux...; | XPath Tutorials | HTML Tutorials C Tutorial Section C String Reverse
solution
solution   A developer wants you to develop a simple take away restaurant order service. The system reads from a file containing information about the restaurant (such as the name, place and menu). The system then allows the user
solution
solution   A developer wants you to develop a simple take away restaurant order service. The system reads from a file containing information about the restaurant (such as the name, place and menu). The system then allows the user
SOLUTION: How to compile Objective C on Windows with GNU Step ?
SOLUTION: How to compile Objective C on Windows with GNU Step ?  <p>I just started learning ObjC today and found this tutorial informative, except the fact that the above program needs some more instructions to run. Here
Map
Map  If I have an object implementing the Map interface in Java and I... way of going through the map either iterator or for each loop or for loop... HashMap(); hm.put(1,"A"); hm.put(2,"B"); hm.put(1,"C"); hm.put(3,"D
map
map  using map, i want display message based on id selected [both are strings]   i do no   Hi Friend, Try the following code...) { Map map=new HashMap(); map.put("Message1","Hello
c++
c++  Characterize the following algorithm in terms of Big-O notation. for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) for (int k = 1; k <= n; k++) cout << i + j + k
K-means clustering on WebLog Data, for 2-Dimenshional input
K-means clustering on WebLog Data, for 2-Dimenshional input  The following is a JSP code for K-MEANS CLUSTERING .... My proect , titled "Pattern... OF NUMBERS(X,Y) for K-MEANS CLUSTERING... the output of this is used for WEB CACHE
Map interface
Map interface  What is the Map interface
C++
and the second row are the two generated numbers. b g c z k e <- letter index...C++  Hi I do not understand the question stated below. Does anyone... for clarification on the above question. Element a b c ΓΆβ?¬Β¦ΓΆβ?¬Β¦ΓΆβ?¬Β¦ x y z Index 0 1 2
Hash Map
Hash Map  how to add the hash map objects in the list and iterate the objects
hash map
(String[] args) { String str1="A",str2="B",str3="C"; int i1=1,i2=2; HashMap<Integer,Test> map=new HashMap<Integer,Test>
c#
c#  how to find out the size of the BMP image in C
C++
C++  How can i write this in dev c
C++
C++  How can i write this in dev c
Interactive map
Interactive map  hi........ i require map to be zoom in and enlarge the area and show its detail. Can anyone tel me how can this be done using java swings .... plz help
Map code
Map code  hi................ I have map of navi mumbai, where i want to see the location vashi, nerul, turbhe.... means want to zoom into this area and then again zoom in and see nerul location more properly or other location
c++
c++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator
hash map
hash map  write a program in hash map , that shows the value in asending order. but not key value. ex: key value ==== ===== k5 ashutosh k1 babita k7 debasis k2 vikas plz help me
c#
c#  how to find out the size of the BMP image
c++
c++  write a programme that calculates the area and circumference of a rectangle
C++
C++  dear sir How to create windows form application for login screen using C++? USER Name -TESTADMIN Password -testuser
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
C++
C++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples
c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples
Tutorials