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

www.vustudents.ning.com

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.

# Assignment No. 01 SEMESTER Fall 2019 CS502- Fundamentals of Algorithms

Assignment Statement:

In mathematics Prime is a number which can be only divisible by 1 and itself. Examples of prime numbers are, 1 , 3 , 5 , 7 ,  11 , 13 , 17 , 19 , 23 , 29 , 31 etc. When these numbers get large, then it is very difficult to manually identify them as to be prime or not prime. For example the numbers like, 443 and 44371 cannot easily identify as Prime.

There may be many algorithms which can be written for the identification of a number to be prime or not prime.

Question No  01:   (Marks:  10)

You are required to design (write) a simple algorithm (Only Pseudo code) which can identify a number to be Prime or Not Prime.

Question No  02:   (Marks:  10)

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

+ 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: 50

.

+ 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)

## Latest Activity

Hafiza Iqra Khan liked ٢١ دن's discussion گناہ
37 minutes ago
1 hour ago
Muhammad Irfan joined + M.Tariq Malik's group

### CS506 Web Design and Development

1 hour ago
Muhammad Irfan joined + M.Tariq Malik's group

### CS510 Software Requirements and Specifications

1 hour ago
1 hour ago
Muhammad Irfan and Areeha Chuhdary joined + M.Tariq Malik's group

### STA301 Statistics and Probability

1 hour ago
Muhammad Irfan joined + M.Tariq Malik's group

### MGT502 Organizational Behavior

1 hour ago
1 hour ago
1 hour ago
Fari Malik liked Zain Kazimi's discussion Self Poetry Dedicated to Nasir Kazimi
1 hour ago
2 hours ago

## Today Top Members

1

2

3

### Azhar Sagar

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

.