Professional Documents
Culture Documents
Mirza Hamza Baig Programming Fundamentals Bs - It A Ms Mehwashma Amir 6/11/2020
Mirza Hamza Baig Programming Fundamentals Bs - It A Ms Mehwashma Amir 6/11/2020
(CAMPUS)
DEPARTMENT: BS.IT
SECTION: A
ASSIGNMENT# 1
ANS:
4 Make decision
6 Mointer
ANS: Algorithmic solution to a problem are those problems that are used to solve a problem in the form
of steps.
FOREXAMPLE:
To sort an array in increasing order A sequential order of steps is followed so this type of solution is a
algorithmic solution.
Q3: Name three current problem in your life that could be solved through an algorithmic?
1 Going to work.
2 Fishing in a pond.
ALGORITHUM NO1
Going to work
START
STEP1: Get up early in the morning taking bath and get ready.
STEP4: Reached to office and going to cabin and then start working
END
ALGORITHUM NO2
FISHING IN A POND
START
STEP2: Reached to the pond and unload the all equipment of fishing.
STEP4: After 30 min I catch many fishes and returned back to home
END
ALGORITHUMNO3
START
STEP1: First of all I take my check book in the bank and also fill my check.
END
ANS:
Question no 5
Answer
Heuristic are a problem solving method that is uses shortcuts to produce good solution given a limited
time frame or deadline. Heuristic are the flexible technique for quick decision, when working with
complex data. Decisions made using heuristic approach may not necessarily b4e optimal
Question no 6
Name three current problems in your life that might be solved through heuristic
Answer
1: Medical case
2: Actuarial problem 3:
scientific problem
Question no 7
Answer
Heuristics is originally a Greek word that means to find. Heuristics are unconscious ways that we process
information more quickly than if we were to think about it consciously. The brain takes mental shortcuts
to save time by thinking logically about things. There are many different ways (cognitive biases) that our
brains have developed during the history of mankind to manage information in a faster way than
rational thinking. The vast majority of our daily decisions are taken up by heuristic decision making.
Question no 8
Name three problems that might arise at home ,at school or in a business that could be solved more
efficiently with computer assistance . Do these problems required an Algorithmic or heuristic solution
why ? Answer
Three problems that might arise at home, at school, or in a business to be solved efficiently with
computer assistance
The following three solutions can only be solved by computer assistance or may be solved
quickly with computer assistance:
1. Complex calculations at home
This problem requires an algorithmic solution as this problem does not require any trial and error or any
analysis.
Question no 9
Algorithm
Make a cup of cocoa
START
Step 6: Take it out of the microwave and enjoy your cup of hot chocolate
END
Sharpen a pencil
START
END
START
END
Get a glass of water from your kitchen
START
END.
Step 2: Insert the key into ignition and turn key clock wise
Step 5: After fixing the problem again insert key into the ignition and turn it clock wise
END.