mardi 31 octobre 2017

generate random logic functions with 2-4 variables and finding the minterm maxterm for that random logic function

this is a homework assignment. I am suppose to create a website that gives random logic functions for the user to solve and also providing the answer at the end. currently i am just hard coding all the possible questions and answers into database for example F = A + AB, A' + AB and so on. Database

Is there a way that generates random logic functions for 2 variables, 3 variables and so on? I did part of the 2variables logic functions and found out it gets exponentially more when i add in more variables. I know that this requires algorithms and functions but i do not know where to start. Can anyone guide me through this?




Aucun commentaire:

Enregistrer un commentaire