CSC510 Report
CSC510 Report
)
COMPUTER NETWORKS
DISCRETE STRUCTURES
CS510
GROUP PROJECT
1
INTRODUCTION
In the dynamic world of computers, the Rule of Inference serves as an intellectual
cornerstone, providing a disciplined approachtologicalreasoningthatpervadesallaspectsof
the profession. Its significance extends beyond theoretical abstraction, with substantial
applications in algorithmic decision-making, database query optimisation, andtheoverarching
objective of assuring software system accuracy and stability. As a linchpin in computational
logic, the Rule of Inference is critical in ensuring programme integrity, validating security
protocols,andcontributingtotheadvancementofartificialintelligence,cementingitspositionas
a must-have tool in the arsenal of computer professionals.
Inlogicandreasoning,the"methodofproof"isthesystematictechniqueorplanusedto
demonstrate the validity or truth of a mathematical statement or proposition. It is a wider
conceptthatincludesmanystrategiesandconceptsfordeterminingthetruthofassertionsinthe
context of formal logic. The method of proof is very important when using inference rules in
logical reasoning.
There are a few methods of proof that have been used to solve some problem
statements such as Direct Proof. This method employs a simple, step-by-step demonstration
that begins with the stated premises and proceeds directly to the conclusion. Each stage is
based on previously established logical rules or known facts. Other thanDirectProofmethod
therearealsoIndirectProofInthisstrategy,thepurposeistoproveapropositionbyassuming
itsnegationandprovingthatthisassumptionresultsinacontradiction.Ifassumingthecontrary
of the assertion causes a logical conflict, the original statement must be true.
Moreover,thethirdmethodisProofbycontradictionisapowerfulapproachusedinlogic
and mathematics toshowthetruthofaclaimbyassumingtheoppositeandprovingthatsuch
an assumption results in a logical contradiction. The last method is Proof by cases, This
strategy includes dividing the proof into separate situations, each of which is analyzed
independently. The conclusion is reached after analyzing all possible circumstances.
2
OBJECTIVES
1. T
O EVALUATE OVERALL VALIDITY
This objective is to determine whether the offered conclusion, "Ali bought Ahmad a
croissant," is logically reasonable and defensible in light oftheprovidedscenario.The
evaluation seekstoassesstheoverallvalidityoftheconclusion,whichentailsensuring
thatthereasoningandlogicalstagesusedinthesolutionaresoundandleadtoavalid
result. The procedure will most likely comprise breaking down the event into logical
propositions, creating premises, and applying inference rules to reach a logical and
justifiable conclusion.
2. T
O APPLY RULE OF INFERENCE IN REAL LIFE
Thisobjectiveisconcernedwiththepracticalapplicationofrulesofinference,whichare
a collection of logical rules or principles, to real-world situations. In the context of the
project, the goal is to apply these rules to analyze a scenario and draw reasonable
conclusionsaboutthelinksoractionsstated.Theuseofinferencerulesineverydaylife
is asystematicandstructuredapproachtoissuesolvingthatensureslogicalreasoning
is used to draw conclusions from supplied information.Itrecognisestheimportanceof
logical ideas in solving real-world situations and making sound decisions.
PROBLEM ANALYSIS
Fortheproblemstatement,wecreatedbasedontheobjectivesthatwedecidedearlier.
Our problem for this topic is shown in the scenario below.
“AhmadwilldohishomeworktodayonlyifAliboughtAhmadacroissant.Aliisnotsick
today and also it is sunny today. If it is sunny today then Ahmad will play football today.
Whenever Ahmad will play football today, Ahmad will do his homework today or Ali is sick
today.”
3
Table of Rules of Inference:-
: p
1 (p ^ (p -> q)) -> q Modus Ponens
2: p -> q
Conclusion: q
: ~q
1 (~q ^ (p -> q)) -> ~p Modus Tollens
2: p -> q
Conclusion: ~p
: p -> q
1 ((p -> q) ^ (q -> r)) -> ( p -> r) Hypothetical Syllogism
2: q -> r
Conclusion: p -> r
: p ∨ q
1 ((p ∨ q) ^ ~p) -> q Disjunctive Syllogism
2: ~p
Conclusion: q
Conclusion: p V q
Conclusion: p
: p
1 ((p) ^ (q)) -> (p ^ q) Conjunction
2: q
Conclusion: p ^ q
: p ∨ q
1 ((p ∨ q) ^ (~p ∨ r)) -> (q ∨ r) Resolution
2: ~p ∨ r
Conclusion: q ∨ r
Ourmethodiswewillchoosetheappropriaterulesfromthetabletofindtheconclusion
fromthecreatedscenario.Itmightnotbecontainsallofthembecauseourworkistoshowthe
capability of these rules in making inferences.
4
SOLUTION
First we will break the scenario into 5 plain statements(without containing any negation).
: Ahmad will do his homework today.
1
2: Ali will buy Ahmad a croissant.
3: Ahmad will play football today.
4: Ali is sick today.
5: It is sunny today.
Next we turn these statements into propositions so it is easier to apply the rules.
ow create some premises based on the scenario using the propositions we create
N
before.
1: P -> Q
P
P2: ~S ^ T
P3: T -> R
P4: R -> (P ∨ S)
Conclusion: Q
Lastly, we will apply the rules step by step.
1:
P -> Q
P
P2: ~S ^ T
P3: T -> R
P4: R -> (P ∨ S)
5: T -> (P ∨ S) ( Resolution: P3, P4)
6: T (Simplification: P2)
7: (P ∨ S) (Modus Ponens: 5, 6)
8: ~S (Simplification: P2)
9: P (Disjunctive Syllogism: 7, 8)
10: Q (Modus Ponens: P1, 9)
5
Second Solution Using Methods of Proof
In this second solution we try to solve the problem by using Methods of Proof. The
conclusionfromtheearlierproblemstatementwillonlybetrueifallthepremisesistrue.Wewil
be using 1 from the 4 methods in the topic to show if those 4 premises are true.
Direct Proof
Byreferringtopremise1,AliwillboughtAhmadacroissantinaconditionthatAhmaddo
ishomeworktoday.ThispremisecanonlybetrueifAlireallydoesboughtAhmadacroissant
h
but we dont know if Ahmad really do his homework.
Inpremise3,IfitissunnytodaythenAhmadwillplayfootballtoday.Sinceweconfirmed
itinpremise2thatitisasunnyday,thepremisecanonlybetrueifAhmadplayfootballonthat
day. This means Ahmad play football on that day is true.
owinpremise4,ifAhmadplayfootballtodaythenAliissicktodayorAhmadwilldohis
N
homework today. From premise 2 and premise 3 earlier since Ali isnotsickandAhmadplay
football on that day thus we can say that Ahmad will do his homework today is true.
owwelookingbackatpremise1,WedontknoweitherAliboughtAhmadacroissantor
N
not earlier but from premise4weconfirmedthatAhmadwilldohishomeworktoday.Sinceall
thepremisesneedtobetruethuswecansaythattheconclusionAliboughtAhmadacroissant
is true.
Comparison
6
DISCUSSION
Theobjectiveoftheprojectistoevaluatetheoverallvalidityoftheconclusion"Alibought
Ahmadacroissant"basedonagivenscenariousingtherulesofinference.Thechosenmethod,
whichinvolvesbreakingthescenariointoplainstatements,turningintopropositions,creatinga
premise using the proposition, and then applying the rules of inference, is a systematic and
effective method for solving this type of problem.
To improve the reliability of the solution, it would be beneficial to explore different
methods and consider more rules of inference to ensure a more thorough analysis. Further,
addressing potential uncertainty in the scenario by providing more specific information or
refiningthestatementscouldimprovetheoverallreliabilityofthesolution.Additionally,including
adiscussiononthesensitivityofthesolutiontovariationsinthescenariocouldfurtherimprove
the analysis.
7
CONCLUSION
In summary, the Rule of Inference emerges as a pivotal intellectual tool in the
ever-evolving realm of computer science. Its practical applications, ranging from algorithmic
decision-making to database optimization, underscore its relevance in ensuring the accuracy
and stability of software systems. Positioned at the core of computational logic, the Rule of
Inference plays a critical role in upholding program integrity, validatingsecurityprotocols,and
contributing to advancements in artificial intelligence, solidifyingitsindispensablestatusinthe
toolkit of computer professionals.
Delvingintologicalreasoning,the"methodofproof"emergesasasystematicanddiversesetof
strategies for establishing the validity or truth of mathematical statements. The Direct Proof
method provides a straightforward, step-by-step demonstration based on established logical
rulesorknownfacts.Contrastingly,theIndirectProofmethodreliesonassumingthenegationof
a proposition and proving that this assumption leads to a contradiction, affirming the original
statement's truth.
8
REFERENCES
.Calcworkshop.
1 (n.d.). Rules of Inference. Retrieved from
https://calcworkshop.com/logic/rules-inference/#:~:text=The%20rules%20of%20inference%20(a
lso,noted%20by%20Monroe%20Community%20College.
. Monroe Community College. (n.d.). Arguments and Rules of Inference. In Discrete Math
2
(MTH 220). LibreTexts. Retrieved from
https://math.libretexts.org/Courses/Monroe_Community_College/MTH_220_Discrete_Math/2%3
A_Logic/2.6_Arguments_and_Rules_of_Inference#:~:text=We%20test%20an%20argument%20
by,where%20all%20premises%20are%20true.
9
Project Rubric (Presentation) – CSC 510 (Discrete Structure)
No. Assessment Excellent (4-5) Good (3) Satisfactory (2) Poor (1)
Criteria
2 verall
O resenter has a
P resenter provides
P resenter provides
P here is no
T
organization of smooth presentation explanations and / or explanations and / or presentation flow.
project presentation flow and provides elaboration, use time insufficient Goes over time limit
good explanations wisely elaboration and use of or does not fully
and / or elaboration, time cover the topics
use time wisely
10
/20
·
No. Assessment Excellent (4-5) Good (3) Satisfactory (2) Poor (1)
Criteria
11
3 Objective ell defined
W learly defined
C eneral
G nrelated
U
project project objectives statement of objectives
objectives, project objectives
measurable and
achievable
4 roblem
P ell-defined
W lear project
C dequate project
A nclear problem
U
analysis project problem problem statement and statement.
statement statement scope.
rovide more
P rovide more
P
than ONE (1) than ONE (1)
solution where solution where
applicable applicable
Future
r ecommendations R ecommendation ome
S nrelated
U
to real life s for future work recommendations discussion
situation are well are stated for future work
stated. are stated
12
7 Conclusion onclusion
C lear conclusion
C onclusion
C o conclusion or
N
includes the of the projects includes the unrelated
findings and objectives findings, lesson conclusion
Conclusion learned from the
includes the project.
findings, lesson
learned from the
project.
Demonstrates
e xceptional
creativity in the
problem
statement.
·
Criter Criter Criter Criter Criter Criter Criter Criter Criter Punctual Total
ia 1 ia 2 ia 3 ia 4 ia 5 ia 6 ia 7 ia 8 ia 9 ity
/5 /50
13
14