Design and Analysis of Algorithms: Assignment - 1
Design and Analysis of Algorithms: Assignment - 1
Total Marks:
Obtained Marks:
Instructions: Copied or shown assignments will be marked zero. Late submissions are not
entertained in any case.
Question
Take any scenario or example and map it on five areas of algorithms study.
Solution:
-(Scenario)-
A Customer come and he wants a Online Biryani Order System means he owns
a Biryani King and he want to make a online store where user visit and order
Biryani on a delivery system.
1st Step
-(Devise an Algorithm)-
1) Build a idea (Project Sketch , Brainstrming ) on your mind what you have to
do in that project.
2) Listen carefully what customer wants. Then make a sketch in your mind
3) Example: now I make a idea on my mind that is ( customer want a Online
Biryani Store means there is a space where all his items are available for user
he/she select an item for deliver, Deliver means there is also a form where the
user fill his address name phone no etc where delivery boy deliver his order, and
customer wants a 2 types of payment terms that means I have to (integrate stripe
payments) and 2nd option is cash on deliver these are the basic requirement of
the user ok).
2nd Step
-(Express an Algorithm)-
1) then draw a sketch or make a structure on the paper (means count the user
requirements) means divide the user requirements in the different parts like,
Example: its online portal that means there is must have a
Header
Footer
Home page (where is describe my store and shows customer latest items
in whats new section example Muglai Biryani, Karachi Hot Biryani etc)
Shop Page where different types of biryani and pulao are available for
user.
About us page
Contact us Page
Store Management System (for check and balance)
User portal where all information of user is stored
Admin portal.
Etc
3rd Step
-(Analyze the Algorithm)-
In analyze system we start practical working on the project
Example: we calculate time and cost means.
> How much time we required on this
> And how much cost is required
> Then we need a storage (server or hosting) and name like (Biryani King)
> Then we tell the UI (User Interface) design to the front-end Developer and
Storage Management System and admin portal to the Back-end Developer
etc for making the body of the website and tell him the exact requirement
that customers wants.
> In this section we must check whole program from starts to end everything.
> We must complete the task before given dead line because the testing are
necessary for the project before its going to be live for the users.
4th Step
-(Test an Algorithm)-
In the testing phase we check the portal efficiency means test the program code
means (what time it take to load is there any type of error code run smoothly)
If there is some part or some portion that make issue for the portal than we
remove that part or portion not the whole program
Test the program for different screens different devices and different ways
and check online payment system by sending a testing payment etc,
5th Step
-(Validate an Algorithm)-
In the validation we check the requirements of the user is complete or not ?
Means that user want a online system with online payment transaction and we
make a online system without online payments system then portal we make but
not complete the user requirement then user not agreed with us.
Example: we make a Biryani King Online Store for Customer but not make a
shop page that means we not complete the customer requirement.