ComputationalComplexity Group8 H OS
ComputationalComplexity Group8 H OS
COMPLEXITY
Project Presentation
Optimisation with Spreadsheets
Group 8
1. PGP/24/441: ASHWARYA BISEN
2. PGP/24/456: MUSKAN VALBANI
3. PGP/24/471: SHRUNATRA MISHRA
4. PGP/24/485: TSERING DESKIT
INTRODUCTION
Computational complexity of an algorithm is the amount of resources
required to run that algorithm. Particular focus is given to time and
memory requirements. The resources required to run the algorithm
depends on the size of the input, the complexity is expressed as a
function.
n → f(n),
(where n is the size of the input)
For Example- Consider the game of checkers. What is the complexity for determining the optimal move on a
given turn? If we constrain the size of the board to 8 by 8, then this is believed to be a polynomial time
problem. But if we say it is an N by N board, it is no longer a polynomial time problem.
Non Deterministic Polynomial-Time (NP)
Type
Definition
An NP problem is one which has a solution, inputs to the
solution and a verifier which runs in polynomial time by a
deterministic Turing machine.
It consists of the set of all decision problems wherein the state
of the problem, whether ‘yes’ or ‘no’ has to be supported by
effectively verifiable proofs.
Phases
The first phase involves making the nearest possible guess
about the solution which is determined in a non-deterministic
manner.
The second phase makes use of a deterministic algorithm that
does the job of verifying or rejecting the guess made by the
user.
Application of NP Complexity Class:
Travelling Salesman Problem
Question:
Given a list of cities and the distances between each pair of cities, what is the
shortest possible route that visits each city exactly once and returns to the
origin city?
Step 2
finding the complexity of a problem. Contributors to complexity: perfect division
of resources is required, sequencing decisions considering both where you
currently are and where you were before, finding out the largest substructure
which satisfies a property, minimizing/maximizing unions & intersections of
sets., etc.
O (log n) Logarithmic Resource grows very slowly despite new data Using Binary search for finding elements in a sorted array:
being added - Finding a word in a physical dictionary
- Finding a person on a phone book
O (n) Linear Resource increases linearly - Find max element in an unsorted array
- Find a given element in a collection.
- Print all the values in a list
O (n2) Quadratic Resource increases in polynomial time - Check if a collection has duplicated values.
-Sorting items in a collection using bubble sort, insertion sort, or
selection sort.
- Find all possible ordered pairs in an array.
O (2n) Exponential Resource doubles with each data item; grows Content
- Power Set: finding Hereon a set.
all the subsets
exponentially - Fibonacci.
- Travelling salesman problem using dyanmic programming
O (n!) Factorial Resource gets added in a factorial/exponential - Permutations
manner due to number of permutations - Travelling Salesman problems
- Sudoku Solvers
Your Picture Here
Modern
Portfolio
Presentation
COMPUTATIONAL COMPLEXITY IN
BUSINESSES
FINANCE
MARKETING • Clearing of Financial
Networks
Customer Relationship
Management • Asset Pricing
2. http://www.cs.jhu.edu/~
scheideler/courses/600.471_S05/lecture_1.pdf
3. https
://www.sciencedirect.com/science/article/abs/pii/03772217
89903299
4. https
://www.researchgate.net/publication/274095047_Sensitivit
y_and_Computational_Complexity_in_Financial_Networks
5. https://www.baeldung.com/cs/tsp-dynamic-programming
6. https://medium.com/@amejiarosario/8-time-complexity-ex
amples-that-every-programmer-should-know-171bd21e5b
a
Thank You
GROUP 8
1. PGP/24/441: ASHWARYA BISEN
2. PGP/24/456: MUSKAN VALBANI
3. PGP/24/471: SHRUNATRA MISHRA
4. PGP/24/485: TSERING DESKIT