FPE Forums
C Project - Printable Version

+- FPE Forums (http://funnyproelites.com)
+-- Forum: Starters (http://funnyproelites.com/forumdisplay.php?fid=4)
+--- Forum: Help (http://funnyproelites.com/forumdisplay.php?fid=11)
+--- Thread: C Project (/showthread.php?tid=6205)

C Project - MaxiTheBanned - 04-21-2016

If you would browse through stackoverflow or similar code help forums, you will be annoyed by this post, because i need help with my school project. (a voluntary one, by the way. i dont think it will even contribute to my grade)

the goal is to shorten a boolean algebra "sentence", for example: (a v b v c)^(a v b v c)
i have to achieve that with a KV-map. https://en.wikipedia.org/wiki/Karnaugh_map.
the program has to be written in c. not c++, not c#, just plain c.
i dont have to visualize the entire project, i just need a console with some querys like "how many variables does your boolean algebra sentence have"), and of course the output being the shortened code.
i'm allowed to use the library "#include <math.h>".

do you guys have any idea how to "tackle" this? not expecting any code, just some general advice how i could start?

if anyone has any questions, i'd be happy to answer them. if i can.
also, my current knowledge about c ends right at if loops.

RE: C Project - Aaronthebaron - 04-25-2016

I'm pretty familiar with boolean propositional logic, but since I studied logic instead of computer programming, most of the stuff I know is how to tell whether the 'sentence' contradict itself.
the KV-Map kinda reminds me of a truth table tho : https://en.wikipedia.org/wiki/Truth_table

RE: C Project - Joe - 04-27-2016

seems most kv-maps are about simplifying the boolean expression with your mind. Here's a piece on doing that - http://www.allaboutcircuits.com/textbook/digital/chpt-8/logic-simplification-karnaugh-maps/