We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

CS502 Assignment No 02 Fall 2019 Solution & Discussion Due Date: 27-11-2019

CS502 Fundamentals of Algorithms Assignment 2 Solution & Discussion Fall 2019


 

Assignment No. 02
SEMESTER Fall 2019

CS502- Fundamentals of Algorithms

 Total Marks: 20

Due Date: 27/11/2019

Instructions

Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit  if:

·       The assignment is submitted after due date.

·       The submitted assignment does not open or file corrupt.

·       The assignment is full or partially copied from (other student or ditto copy from handouts or internet).

·       Student ID is not mentioned in the assignment File or name of file is other than student ID.

·       The assignment is not submitted in .doc or .docx format.

Uploading instructions

Your submission must include:

·       Assignment should be in .doc or .docx format.

·       Save your assignment with your ID (e.g. bx180200786.doc).

Assignment submission through email is NOT acceptable

Objective

The objective of this assignment is

·       To give basic knowledge and understanding of Algorithms.

·       To be able to design sorting algorithms.

·       To be able to understand and calculate the complexity of algorithms.

 

Note:

Your answer must follow the below given specifications.

·        Font style: “Times New Roman”

·        Font color: “Black”

·        Font size: “12”

·        Bold for heading only.

·        Font in Italic is not allowed at all.

·        No formatting or bullets are allowed to use.

·       Your answer should be precise and to the point, avoid irrelevant detail.

 

Lectures Covered: This assignment covers Lecture # 09 - 14

Deadline

Your assignment must be uploaded/submitted at or before 27/11/2019.

 

Assignment diagram:

 

Consider the given diagram having an unsorted array and its sorting procedure through dry run. You are required to answer the following questions.

 

Question No  01:   (Marks:  5)

You are required to determine (write down the name) the algorithm being used while sorting the above given array.

 

Question No  02:   (Marks:  7)

You are required to design (write) the algorithm (Only Pseudo code) determined in Question 1.

 

Question No  03:   (Marks:  8)

You are required to calculate (Step by Step) the worst case time complexity T(n) of the algorithm designed in Question No. 02.

 

For any query about the assignment, contact at CS502@vu.edu.pk

GOOD LUCK

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 2083

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

Students having same subject can start discussion here to solve assignment, GDB & Quiz and can clear their concepts until solution is provided. 

 

P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

Then copy Questions from assignment file and paste in Discussion.

 

http://bit.ly/vucodes (For Assignments, GDBs & Online Quizzes Solution)

http://bit.ly/papersvu (For Past Papers, Solved MCQs, Short Notes & More)

Click Here to Search (Looking For something at vustudents.ning.com?)

Click Here to Join (Our facebook study Group)

solution

CS502 Assignment NO 02 Solution Fall 2019

Below link 

CS502_Assignmnet_2_Solution_Fall_2019_vustudents.ning.com.docx

CS502 Assignment  2 solution 2019CS502 Assignment  2 solution 2019VU ID: BCXXXXXXXXXXXXXXXXUSERNAME: ABCQ1:You are required to determine (write down the name ) of the algorithm being used while sorting the above given array ?Answer:The name of the algorithm is selection sort algorithm.
Q2:You are required to design the algorithm (only pseudo code) determined in question 1 ?Answer:SelectionSort(){
For(i= 0 to n -1){ Min = I C1 For(j = I+1 to n-1){ If(arr[min] > arr[j]) Min = j C2 }Temp = a[i]A[i] = a[min]A[min]=temp C3}
}

Q3:You are required to calculate (step by step) the worst case time complexity T(n) of the algorithm designed in question no 2 ?Ans:C1     = (N-1)C2     =(N-1)+(N+2)+(N+3)+…..+1 C3  = (n-1)T(n) = (n-1).C1 +  .C2 + (N-1)C3T(n) = an2 + bn + cHere a , b and c are constants in term of c1,c2 and c3T(n) = O(n2)

one more 

CS502 Assignment No 02 Solution Fall 2019

below link 

CS502 Assignment 2 solution 2019

CS502_Solutoin_Assignment_02_Fall_2019

below link

CS502_Solutoin_Assignment_02_Fall_2019.docx

CS502 solution Assgnment#02

link below 

CS502 solution Assgnment#02

kindly bta den important topics for mid

RSS

Latest Activity

Safdar rehman commented on Esha mirza's blog post painful moment........
6 minutes ago
Mahmood Rana and Humaira Khan are now friends
19 minutes ago
Awais Ahmad joined + M.Tariq Malik's group
19 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS510 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS510 Software Requirements and Specifications
22 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion CS510 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material
23 minutes ago
+ M.Tariq Malik's 9 discussions were featured
23 minutes ago
+ M.Tariq Malik added a discussion to the group CS510 Software Requirements and Specifications
24 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS509 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS509 Database Management Systems
29 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion CS509 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material
29 minutes ago
+ M.Tariq Malik added a discussion to the group CS509 Database Management Systems
30 minutes ago
December 2019 posted a discussion
31 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion CS508 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group CS508 Modern Programming Languages
34 minutes ago

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.