HGBVHGFX
HGBVHGFX
PROJECT REPORT
Session 2023-2027
• Muhammad Mahad Saffi(2023-CS-59)
• Abu Tayyab (2023-CS-54)
Supervised by:
Waqas Ali
Course:
Discrete Mathematics
2
TABLE OF CONTENTS
Contents
Achieve:
In this game, we try to achieve a row of three same symbols, either X or O, in a
horizontal, vertical, or diagonal line.
Avoid:
We try to avoid filling up the board without achieving a row of three of our
symbols and we also try to avoid letting our opponent achieve a row of three of his
symbol. For this purpose, we try to implement best algorithm to do both tasks.
Generalization:
When we play this game with bigger boards like 5x5 and 10x10, it would start
forming different shapes and the moves becomes complex and maybe multiple edges or
loops also starts. So, in case of bigger boards, the graph of this game starts becoming
complex.
4
• Snakes and Ladders as Directed Edges: The snakes and ladders themselves can be seen as
directed edges that connect two non-adjacent vertices. If you land on a square with the base of
a ladder (or the head of a snake), you instantly move to a different vertex (the top of the ladder
or the tail of the snake) .
• Shortest Path with BFS: To find the minimum number of dice throws required to finish the
game, you can use the Breadth-First Search (BFS) algorithm. BFS is used to find the shortest path
in a graph. In this case, the shortest path would represent the minimum number of dice throws
needed to reach the last square from the first.
Brain Dots:
Brain Dots is a game where you have to draw shapes and lines to make two balls collide.
The balls and the shapes are affected by gravity and physics. This game can be seen as a
graph drawing problem, where each ball is a vertex and each shape is an edge. The goal is to
find a planar embedding of the graph, where no two edges cross. Brain Dots can be
considered as a graph drawing game, where the player has to find a planar embedding of a
graph with two vertices (the balls) and some edges (the shapes).
5
TASK 3:Bipartite
7
8
TASK 2: GCD
13
TASK 3: LCM
14