In: Computer Science
Jerry plans on registering for five classes this semester: English Composition, Physics, Physics Lab, Java, and Music Appreciation. However, he is not sure if these classes are being offered this semester or if there will be timing conflicts. Also, two of the classes, Physics and Physics Lab, must be taken together during the same semester. Therefore, if he can register for only one of them, he will not take either class. If, for any reason, he cannot register for a class, he will identify and register for a different class to take its place and that fits his time schedule. Use a decision table that shows all rules to represent this logic.
Hello, Please find the below both collapsed decision table and Decision tree.
Kindly let me know if further step by step analysis is required.
Here r1,r2,r3 represents different rules.
Collapsed Decision Table | r1 | r2 | r3 | r4 | r5 | r6 | r7 |
All 5 planned classes are offered this semester? | t | t | t | f | t | f | t |
Timings of all planned classes are not conflicted? | t | t | f | - | f | - | t |
Physics and Physics lab are together in this semester? | t | f | - | - | - | - | f |
Does other classes fit in timetable? | - | t | t | t | f | f | f |
Actions | |||||||
Jerry attend all planned given 5 subjects? | T | F | F | F | F | F | F |
Jerry attend 5 subjects containing other than planned? | F | T | T | T | F | F | F |
Decision Table | r1 | r2 | r3 | r4 | r5 | r6 | r7 | r8 | r9 | r10 | r11 | r12 | r13 | r14 | r15 | r16 |
All 5 planned classes are offered this semester? | t | f | t | f | t | f | t | f | t | f | t | f | t | f | t | f |
Timings of all planned classes are not conflicted? | t | t | f | f | t | t | f | f | t | t | f | f | t | t | f | f |
Physics and Physics lab are together in this semester? | t | t | t | t | f | f | f | f | t | t | t | t | f | f | f | f |
Does other classes fit in timetable? | t | t | t | t | t | t | t | t | f | f | f | f | f | f | f | f |
Actions | ||||||||||||||||
Jerry attend all planned given 5 subjects? | T | F | F | F | F | F | F | F | T | F | F | F | F | F | F | F |
Jerry attend 5 subjects containing other than planned? | F | T | T | T | T | T | T | T | F | F | F | F | F | F | F | F |