Preview

computer will soon replace the book

Satisfactory Essays
Open Document
Open Document
379 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
computer will soon replace the book
06CS43

MODEL QUESTION PAPER
Fourth Semester B.E. Degree Examination, June/July 2008
CS/IS
Analysis and Design of Algorithms
Time : 3 hours Max Marks:100

Note: Answer atleast two full questions from each part.

PART -A

1. a) Explain the Notion of algorithm and its important characteristics with the help of an algorithm. (06 Marks)
b) Write an algorithm to check whether the given number is an Armstrong number or not.(Ex: 13+53+33=153) (06 Marks)
c) Briefly explain the following terms- (08 Marks)
i) Dictionary ii) Stable algorithm iii) ADT iv) First child next sibling representation of trees
2. a) Explain the various asymptotic notations with examples. (08 Marks) b) Use the informal definitions of O, Ω, θ to determine whether the following assertions are true or false. (06 Marks) i) n(n+1)/2 € O(n3) ii)n(n+1)/2 € O(n2) iii) n(n+1)/2 € θ (n3) iv) n(n+1)/2€ Ω (n)
c) Discuss the algorithm for element uniqueness problem for its
Efficiency. (06 Marks)
3. a) Explain selection sort algorithm and its efficiency. (08 Marks) b) Discuss the merge sort algorithm with recursive tree and its efficiency. Apply the same algorithm to sort the list {4,6,1,3,9,5,2,7}. (12 Marks)
4. a) Briefly explain Strassen’s matrix multiplication. Obtain its (12 Marks) complexity. Apply the algorithm to multiply the given 2 matrices.

1 2 5 6 3 4 X 7 8
b) Differentiate between DFS and BFS tree traversals. Explain how
DFS algorithm can be used to obtain the topological sorting with an example. (08 Marks)

PART -B

5. a) Write and explain the Heap sort algorithm using top-down approach.
Sort the elements {M,O,R,N,I,N,G} in alphabetical order. (10 Marks)
b) Explain the Boyer-Moore algorithm for string matching with an example. (10 Marks)
6 a) Construct the open hash table and closed hash table for the input: 30,20,56,75,31,19 using the hash function h(k)=k

You May Also Find These Documents Helpful

  • Good Essays

    Computer Study Guide

    • 413 Words
    • 2 Pages

    To save time, it is best to save a document only before you start it.…

    • 413 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    TEXTBOOK

    • 15836 Words
    • 63 Pages

    Leisure’s roles are not static, but rather they change and evolve with the circumstances in which we find ourselves.…

    • 15836 Words
    • 63 Pages
    Powerful Essays
  • Satisfactory Essays

    true notebooks ch 9

    • 462 Words
    • 2 Pages

    One student that benefited from the class was Francisco Javier. Francisco wrote two letters to his mother explaining how he feels and appreciates her. In one of his letters he said, “You know what, Mom? When you lecture or counsel me, even though it doesn’t seem like I’m listening, your words stay in my mind. When I go to bed, I reflect on them. I know you think I don’t appreciate everything you’ve done for me, but it’s the opposite.”(96) Even though he never sent either of his letters to his mom, he shared his love and appreciatioTaft Shooter Who Opened Fire at Taft Union…

    • 462 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Java

    • 490 Words
    • 3 Pages

    Write a Java program to demonstrate using bitmaps and bitwise operators to sort and remove duplicates from a file of random phone numbers. Do not confuse the term bitmap used for compressing data into smaller spaces with the bitmap that has come to mean a graphic image.…

    • 490 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    ss book

    • 776 Words
    • 4 Pages

    Some scientist think that burning coal and gases help the greenhouse effect but is not help the greenhouse effect it is making the air pollute.…

    • 776 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Are you tired of carrying heavy notebooks and textbooks on a daily basis, losing your papers and reading obsolete books? Many students in high school would agree that using notebook computers would be easier, functional and efficient instead of using textbooks and notebooks. If schools would replace textbooks and notebooks with notebook computers, schools would not have to waste a lot of paper, which causes deforestation. Notebook computers would help the environment, ameliorate a student’s organization and attentive skills and they would not have to carry around heavy books on a daily basis.…

    • 824 Words
    • 3 Pages
    Good Essays
  • Good Essays

    (In order to explain how this book is an ideal and sustainable product, and not simply an educational device, I first must explain the educatory content of the book as it will reveal a new form of thought about sustainable design; the type of design thinking that went into creating a book not made of paper.)…

    • 871 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Ibm Text Book

    • 10852 Words
    • 44 Pages

    Credits and acknowledgments borrowed from other sources and reproduced, with permission, in this textbook appear…

    • 10852 Words
    • 44 Pages
    Satisfactory Essays
  • Good Essays

    Textbooks v. Techboks

    • 497 Words
    • 2 Pages

    I think that all schools should switch to tablets rather than keep textbooks because texhbooks are much cheaper than textbooks in the long run, they are by far lighter then textbooks, techbooks can hold hundreds of thousands of book in its memory core, and teachers can more actively help students reach their goals.…

    • 497 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Compared with traditional textbooks, the iPad and other devices for reading digital books have the prospective to save on textbooks costs in the long term, to provide students with more and better information faster, and – no small matter – to lighten the typical college student’s backpack. Santa Clara University student Christopher Paschal, 19, for instance, esteemed the search function in his economics e-textbook, and said the included video clips offered “An alternative method of learning,” and eliminated “The monotony of endless pages of reading.” But eventually, “I feel that I comprehend material better in regular textbooks, “Paschal says. “Textbook publishers haven’t had a chance to modify things for the iPad. If publishers really get behind the iPad, I can see a day where it’s the only thing I would bring to school.” Even then, some evidence recommends students see a downside to 24/7 interactivity when it comes to formulating for exams or doing homework. During visits last fall to libraries, coffee shops and other campus hangouts to scrutinize how students study, a test-prep company noted that, when it was time to study, cellphones, laptops and Kindles were put away. A 2005 review by researchers at Carleton University in Ottawa, Canada, of 38 studies initiate “Very little support” for the idea that all those links to additional information enhance the reader’s experience. The online environment “Promotes cursory reading, hurried and distracted thinking, and superficial learning, “ argues Nicholas Carr, who raises concerns about the long-term implications in The Shallows: What the internet Is Doing to Our Brain, which was published in June.…

    • 263 Words
    • 8 Pages
    Satisfactory Essays
  • Good Essays

    Hard copy books vs

    • 940 Words
    • 3 Pages

    This year Riga Business School decided that they would provide students with electronic books instead of hard copy ones. The decision about the books occurred because hard copy books are too expensive. The decision implemented because administration think that this generation students prefer to read everything on the Internet. However, Riga Business school students prefer to read printed books not only because it is easier to remember the text and stay focused, but also because book adds a preference to keep them in hands that is still important for people around the age 18-21.…

    • 940 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Electronic Textbooks

    • 384 Words
    • 2 Pages

    I am senator Slover and I stand firmly as affirmation on the bill to mandate electronic textbooks. Electronic textbooks will be the answer to economic struggles in schools all across California. Not only will this action cut down expenses on paper, textbooks, and the fees for missing textbooks, but it will help make money for other departments of education. A study, by ALA.org, comparing prices of textbooks and an e-book shows that a textbook is approximately double the price of an average e-book. Many schools make it mandatory that students haul their textbooks from home to school every day, which in many cases can result to a strain in the students’ backs. In an article from nytimes.com, a reporter looked into this study and wrote “Heavy backpacks don’t just zap children of their energy that would be better used doing schoolwork or playing sports but lugging them around every day can also lead to chronic back pain, accidents and possibly lifelong orthopedic damage.” (Jane Brody, nytimes.com) The federal Consumer Product Safety Commission calculated that carrying a 12-pound backpack to and from school and lifting it 10 times a day for an entire school year puts a cumulative load of 21,600 pounds on the students’ bodies. Not only will textbooks put a strain on the backs of students everywhere, but it will also leave less room in backpacks for other important school supplies. E-books don’t only weigh 1-2 pounds, but also have much easier accessibility and portability as well as many different features like searching keywords, highlighting, annotations, zoom, and many more things. Another study shows that students of the Riverside Unified School District who used an interactive, digital version of an Algebra 1 textbook scored 20 percent higher on the California Standardized test vs. students who learned with print textbooks during the 2011-2012 school year. Using e-books have been proven to help enhance the students’ grades! A…

    • 384 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Chapter 8 Computer

    • 2419 Words
    • 10 Pages

    Once the hacker gains access to the network, four types of threat may arise. List and explain each of these four threats.…

    • 2419 Words
    • 10 Pages
    Good Essays
  • Good Essays

    1. This type of monitor is common on desktop computers. It looks much like a standard television. A) cathode-ray tube B) flat-panel C) monochrome D) projector 2. Monitors use various intensities of __________ colors to generate the rainbow. A) 16 B) 16 million C) three D) four 3. The __________ helps to align the electron guns. A) pixel B) shadow mask C) resolution D) refresh 4. LCD monitors often have a smaller __________ than CRT monitors. A) refresh rate B) viewing angle C) color depth D) price 5. The __________ monitor is similar to the LCD monitor, but has a phosphorescent film between the layers. A) Electro luminescent displays (ELD) B) Plasma displays C) Paper-white displays D) thin-film transistor 6. This specification of a monitor describes the usable portion of the screen. A) refresh rate B) resolution C) dot-pitch D) viewable area…

    • 888 Words
    • 4 Pages
    Good Essays
  • Good Essays

    As blood circulates, it cleans out body waste, like the collector who cruises the neighborhood picking up trash.___3____…

    • 330 Words
    • 2 Pages
    Good Essays