Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

solution of k map in c

Ads

 
 

Share on Google+Share on Google+

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

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

Ads
View Answers

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

include

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(); }


Ads









Related Tutorials/Questions & Answers:
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
Advertisements
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: 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
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
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
Artifacts of com.artit-k
List of Artifacts of com.artit-k maven depenency
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
C++
C++  How can i write this in dev c
C++
C++  How can i write this in dev c
c#
c#  how to find out the size of the BMP image in C
c++
c++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator
c++
c++  write a programme that calculates the area and circumference of a rectangle
c#
c#  how to find out the size of the BMP image
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++  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++  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
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++  Describe the principle advantages of deploying a linked list versus a static array when implementing a Queue or a Stack
C++
C++  Trace the bubble sort using the following integers,which represent the elements in an array. 5,7,3,8,6,7,3
c++
c++  write a prgrm tht accepts 3 integer values,then with a function to swap the values
Hash Map
Hash Map  how to add the hash map objects in the list and iterate the objects
C#
C#  i need a code that will make program perform the basic operations upon the data Listview save, update and cancel