Preview

Vikram Sarabhai Essays and Term Papers

Powerful Essays
Open Document
Open Document
2477 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Vikram Sarabhai Essays and Term Papers
MASTER OF COMPUTER APPLICATIONS (MCA)

MCA/ASSIGN/III/YEAR/2012

ASSIGNMENTS Year, 2012-13 (3rd Semester)

(MCS-031, MCS-032, MCS-033, MCS-034, MCS-035, MCSL-36)

There are ten questions in this assignment, which carries 80 marks. Rest 20 marks are for viva-voce. Answer all the questions. You may use illustration and diagrams to enhance the explanations. Please go through the guidelines regarding assignments given in the MCA Programme Guide for the format of presentation. The examples, whenever asked to be given, should be different from those that are discussed in the course material. Question1: Using Insertion Sort, sort the following sequence in increasing (10 marks) order and do the analysis of the algorithm: 35, 37, 18, 15, 40, 12 Question 2: Write a pseudocode for divide and conquer algorithm for finding the position of an array of n numbers and estimate the number of key comparisons made by your algorithm. (10 marks) Question 3: Apply quicksort to sort the following list: Q U I C K S O R T (10 marks) in alphabetical order. Find the element whose position is unchanged in the sorted list. Question 4: Write Strassen’s matrix multiplications algorithm for obtaining the product of two matrices. (10 marks) Question 5: (i) Define DFS. Explain briefly how it differs from BFS. (10 marks) (ii) Write pseudocode for DFS and calculate its time complexity Question 6: Apply Kruskal’s algorithm to find minimal spanning tree with an example. (10 marks) Question7: Arrange the following growth rates in increasing order: O (3n), O (n2), O (1), O (n log n) Question 8: Using Principle of Mathematical Induction, prove that the sum 20 + 21 +…+ 2n is 2n +1 – 1 for all n  1.

(4 marks)

(6 marks)

Question 9: Define Knapsack Problem and cite one instance of the problem. (5 marks) Question 10: Explain the essential idea of Dynamic Programming. How does Dynamic Programming differ from Divide and conquer approach for solving problems?

(5 marks)

3

Course Code

You May Also Find These Documents Helpful

  • Good Essays

    | |This Module 2: Lesson 4 Assignment is worth 15 marks. The value of each assignment and each question is stated in the left margin. |…

    • 820 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nt1420 Unit 6

    • 1145 Words
    • 5 Pages

    INSTRUCTIONS: 1. THERE ARE SIX (6) QUESTIONS IN THIS PAPER. 2. ANSWER FIVE (5) QUESTIONS ONLY. Question 1 Arrays are used when storing a large number of values. You are required to create an array named a and answer the following questions regarding array manipulation. a. Write a method fillRandom(int[] a, int min, int max), fill the array a with a random integer value. (Note: Math.random() returns a double in the range of 0.0 and 1.0, therefore it is cast to an integer number, between the minimum and maximum value). [6 marks] b. Write the Bubble sort method to sort array a into descending order. [10 marks] c. In the quicksort, an algorithm an element is chosen from the unsorted list. This element is called the…

    • 1145 Words
    • 5 Pages
    Good Essays
  • Good Essays

    ECET 370 Week 5 Lab 5

    • 650 Words
    • 3 Pages

    Exercise 1: Review of the Lecture Content Create a project using the ArrayList class and the Main class provided in DocSharing. The ArrayList class contains implementations of the first three search methods explained in this week's lecture: sequential, sorted, and binary search. The Main class uses these three methods. These programs test the code discussed in the lecture. Compile the project, run it, and review the code that is given carefully.…

    • 650 Words
    • 3 Pages
    Good Essays
  • Good Essays

    This is our first individual assignment for Programming unit this semester. This assignment was given in December 2013, and submission date is on 10th February 2014.…

    • 1859 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    CS 220 – Programming w/ Data Structures: You have missed one assignment and one quiz. Your instructor has extended your assignment due date to this Sunday, April 10. Your instructor has also let you to take your Quiz # 2 during his office hours during this week. Let me know if you need additional support to study for this quiz. Your grade to date in this class is 30.2/37 81.62% B.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Best Essays

    Irwin, Katherine. "Into the Dark Heart of Ethnography: The Lived Ethics and Inequality of Intimate Field Relationships." Qualitative Sociology 29.2 (2006): 155-175. SocINDEX with Full Text. EBSCO. Web. 16 Feb. 2010.…

    • 3749 Words
    • 15 Pages
    Best Essays
  • Satisfactory Essays

    Today’s lecture will be spent entirely in the computer lab. At the end of lab, submit this worksheet.…

    • 581 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    In the book Children Who Made History by ? it describes the life of Sacajawea. Sacajawea, a Shoshone Native American, was born sometime in the late 18th century, probably around 1788 or 1789. When she was twelve years old, a Hidatsa raiding party captured her and took her away from her tribe. She was then sold or gambled into the possession of a French-Canadian fur-trader and trapper named Toussaint Charbonneau, who made her his wife. At the time, Charbonneau had another wife named Otter Woman, also a Native American. In conclusion I think that Sacagawea was a very helpful women during the expedition. Sacagawea is a good women to research when your bored, Or when you do a project.…

    • 121 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    This exam consists of 20 questions of equal value on a total of 4 pages including this cover page.…

    • 746 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    Siddhartha Research Paper

    • 280 Words
    • 2 Pages

    Mara is a symbol of death and suffering in Buddhism. When researching the name Mara it was found that its Sanskrit root means, “to die.” During the life of the Buddha and his path to enlightenment, he encounters this evil archenemy. Mara attempts to tempt Buddha in many different ways in order to try and ruin his chance of achieving enlightenment. He believes he has power over the soon to be Buddha when stating “so this successful prince Siddhartha wishes to escape from my sphere of influence, straight away I will make him unsuccessful.” As prince Siddhartha is meditating under the Bodhi Tree, Mara sent an army after Buddha in attempt to bring him down. Mara created a storm which brought “an extremely terrible fire like fiery great rocks,…

    • 280 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Siddhartha Research Paper

    • 552 Words
    • 3 Pages

    In the book Siddhartha by Hermann Hesse, Siddhartha has a myriad of teachers. His one goal in life is to achieve enlightenment. He encounters various teachers in hopes of achieving enlightenment through one of their teachings or experiences. Nevertheless, with every teacher, he comes into a new phase of his life with a new intention in mind. He learns the ways of life through his teachers of Kamala, Kamaswami, and Vasudeva.…

    • 552 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Lab 3 Student

    • 1264 Words
    • 7 Pages

    This lab requires you to think about the steps that take place in a program by writing pseudocode. Read the following program prior to completing the lab.…

    • 1264 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    From th14th century to the 16th century illustrated books were important art in Iran. The popular text was the Shahnama known as books of the kings. It’s about adventure stories, romance and also a guide to ethics, and a manual of royal conduct. There’s ten survival illustrated shahamana manuscripts from 1300c.e – 1350 c.e. Shahnama manuscripts were made in places where the outside directed Mongol political control. This was an effort to start legit ruling. Stefano Carboni art historian quoted the style as simple, Naïve compositions of refined detail in posture of the figures, tress, plants & brush strokes.…

    • 99 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Satoshi Tajiri was born on august 18th 1965 in Tokyo Japan. His father was a Nissan car salesman in his home town of Machida. His name is known by few, yet most people in my generation have bought his products and watched his show without knowing who the man behind the idea was.…

    • 833 Words
    • 4 Pages
    Good Essays
  • Good Essays

    ___________________________________________________________________________ 1. A Ch3 Student: firm will maximize profit by producing that level of output at which A. the additional revenue from the last unit sold exceeds the additional cost of the last unit by the largest amount. B. the additional revenue from the last unit sold equals the additional cost of the last unit. C. total revenue exceeds total cost by the largest amount. D. total revenue equals total cost. E. both b and c 2. The function a decision maker seeks to maximize or minimize is the ________ function. A. optimal B. decision-making C. objective D. marginal E. none of the above 3. Choice variables A. determine the value of the objective function B. determine the constraint C. can only take on integer values D. cannot be continuous E. both c and d 4. For an unconstrained maximization problem A. the decision maker seeks to maximize net benefits. B. the decision maker seeks to maximize total benefits. C. the decision maker does not take cost into account because there is no constraint. D. the decision maker does not take the objective function into account because there is no constraint. E. none of the above 5. When marginal cost is greater than marginal benefit at the current activity level, the decision maker can increase net benefit by decreasing the activity because A. B. C. D. total benefit will rise by more than total cost will rise. marginal cost is rising faster than marginal benefit is falling. net benefit is upward sloping at this point. total cost will fall by more than total benefit will fall. 6. For a constrained minimization problem, the decision maker A. is constrained by the specific amount of total benefits. B. is…

    • 8076 Words
    • 33 Pages
    Good Essays

Related Topics