...PKnuth-Morris-Pratt Algorithm Kranthi Kumar Mandumula Knuth-Morris-Pratt Algorithm Kranthi Kumar Mandumula December 18, 2011 Kranthi Kumar Mandumula Knuth-Morris-Pratt Algorithm outline Knuth-Morris-Pratt Algorithm Kranthi Kumar Mandumula Definition History Components of KMP Algorithm Example Run-Time Analysis Advantages and Disadvantages References Kranthi Kumar Mandumula Knuth-Morris-Pratt Algorithm Definition: Knuth-Morris-Pratt Algorithm Kranthi Kumar Mandumula Best known for linear time for exact matching. Compares from left to right. Shifts more than one position. Preprocessing approach of Pattern to avoid trivial comparisions. Avoids recomputing matches. Kranthi Kumar Mandumula Knuth-Morris-Pratt Algorithm History: Knuth-Morris-Pratt Algorithm Kranthi Kumar Mandumula This algorithm was conceived by Donald Knuth and Vaughan Pratt and independently by James H.Morris in 1977. Kranthi Kumar Mandumula Knuth-Morris-Pratt Algorithm History: Knuth-Morris-Pratt Algorithm Kranthi Kumar Mandumula Knuth, Morris and Pratt discovered first linear time string-matching algorithm by analysis of the naive algorithm. It keeps the information that naive approach wasted gathered during the scan of the text. By avoiding this waste of information, it achieves a running time of O(m + n). The implementation of Knuth-Morris-Pratt algorithm is efficient because it minimizes the total number of comparisons of the pattern against the...
Words: 2243 - Pages: 9
...Miguel Prado Robert Morris Robert Morris was a delegate for the state of Pennsylvania. He was a key congressman that specialized in financial affairs and military procurement. During the Constitutional Convention, he sympathized with the Federalists. Robert Morris was known to not speak much, only speaking twice in debates and not serving on any committees. He declined George Washington’s offer of being the first Secretary of the Treasury, instead, he took a United States Senate seat (1789-1795). Morris founded many companies later in his life. He had found several canal companies, a steam engine company, and even launched a hot air balloon from his garden. Robert Morris also had the first iron rolling mill in America. He was a great business man and knew how to deal with money. His service to the United States and Pennsylvania was that he laid out a national funding plan on direct taxation. Morris was considered one of the key founders in America’s financial system. He then married his wife Mary White. She was twenty years old while Morris was thirty-five. Together they had five sons and two daughters. Morris was also an advocate to end slavery. Robert Morris left an unbelievable legacy in the United States. Many public schools and universities adopted his name in honor of him. He was the first person to use to dollar sign symbol ($). Roger Sherman and Robert Morris were also the only two people to sign all three momentous documents of the United States; the Declaration...
Words: 304 - Pages: 2
...gives the value of $12 after restructuring. But this avoids the future tax shields The valuation of the Kraft, Inc. shares comes around $110 to $124, while the Phillip Morris paying very less in order of $79 to $92 | Phillip Morris's value | Proposed Restructuring | Phillip Morris's value (with ITS) | Proposed Restructuring (with ITS) | | | | | | No of Shares Outstanding | 122.22 | 122.22 | 122.22 | 122.22 | Value of the Firm | 11000 | 13444 | 9646 | 15158 | Share Price | 90 | 110 | 78.92 | 124.02 | Thus the new price for the shares will become around $124. And this proves that the company should go with the restructuring rather than going with the offer made by Phillip Morris Thus we recommend that the Kraft’s should go with the proposed restructuring in search for a better value for the shareholders B. Are these forecasts reasonable? Provide an evaluation/critique of the main assumptions. As the management feels that the Phillip Morris has underpriced them, and their value is much more than the proposal at $90. And they can easily increase their value by restructuring. They can prove to Phillip Morris that what they are paying is actually less, by showing them their restructuring benefits and can claim to increase the bidding value. krafts can also pitch that Phillip Morris is actually paying very less because of...
Words: 649 - Pages: 3
...Monica Morris • Civil inattention goffman idea where are we when these street acts take place we are on the street. The normal action in north American cities is characterized by civil inattention that is what usually prevails between strangers • We don’t bang into each other on the sidewalks we are aware of what is happening around us. We don’t move inot other peoples space • Street is also characterized by silence. We don’t speak to each other people on the street look at you and say good morning in other countires it is not typical in north American countires • Norm of civil inattention can be breached or disrupted there is normal and then can be breached • The street remark is a comment in a public place between people that are not acquainted with one another • Street remarks that involve men and women • Youthful women that are the objects of street remarks and not youthful men ( would be a OBSERVATION) o This seems obvious but sociological thinking takes into account the obvious • We live in society but don’t notice things until we interpret it and then we notice some kind of order • Third thing - The substance of the remarks whatever they are sounds or words focus on woman’s appearance but not only their appearance • Fourth thing we can’t do anything that is morally questionable • The comments seem to suggest that she is acting out of role she’s not measuring up or she is measuring up in a certain way that makes her extraordinary...
Words: 656 - Pages: 3
...Form 1040 Department of the Treasury - Internal Revenue Service (99) U.S. Individual Income Tax Return Last name 2012 OMB No. 1545-0074 , 2012, ending , 20 IRS Use Only-Do not write or staple in this space. For the year Jan. 1-Dec. 31, 2012, or other tax year beginning Your first name and initial See separate instructions. Your social security number Same A If a joint return, spouse's first name and initial Morris Last name 741-85-2963 Spouse's social security number Sarah B Home address (number and street). Morris Apt. no. 321-65-4987 Make sure the SSN(s) above and on line 6c are correct. Presidential Election Campaign Check here if you, or your spouse if filing jointly, want $3 to go to this fund. Checking a box below will not change your tax or refund. 54321 Gala Avenue City, town or post office, state, and ZIP code. If you have a foreign address, also complete spaces below (see instructions). Tyler Foreign country name TX 1 2 3 Single X Married filing jointly (even if only one had income) Married filing separately. Enter spouse's SSN above and full name here. 75701 Foreign postal code Foreign province/state/county You Spouse Filing Status Check only one box. 4 Head of household (with qualifying person). (See instructions.) If the qualifying person is a child but not your dependent, enter this child's name here. 5 Qualifying widow(er) with dependent child Boxes checked on 6a and 6b No...
Words: 2203 - Pages: 9
...The Thin Blue line, directed by Errol Morris investigates the murder of Officer Robert Wood. Randall Adams was wrongfully accused of committing the crime and sentenced to life in prison. David Harris, who accused Adams of murdering Wood, was the real killer. Through the use of interviews, voice recordings, and reenactments, The Thin Blue Line challenges the justice system of Dallas, Texas as to whether they convicted the right man for the murder of Officer Robert Wood. Morris first heard about this case while he was working as a private detective during the 1980’s on Wall Street in New York City. He had heard through lawyers that he knew about a psychiatrist named Dr. Grigson who was known in Dallas as Dr. Death. The reason Dr. Grigson...
Words: 434 - Pages: 2
...The artist of my painting is Burton Morris. Burton Morris is an American Artist. He is known for his famous pop art paintings. Most of his paintings involve ordinary, everyday objects such as cars, toasters, donuts, and cereal boxes. Burton has painted for a few famous events including an MLB All-Star game, a US Open Golf Tournament, One Young World Conference, and many more. Burton Morris also wrote many books including “Pop!” This painting was made in the 2000’s to help show Mario Lemieux his support on his accomplishments over the years with the Pittsburgh Penguins. No, this time period did not affect the painting and/or the artist. The reason Burton Morris created this painting was to show the people the accomplishments Mario Lemieux...
Words: 474 - Pages: 2
...Textual Analysis Philip Morris International The move structure is expository with clearly defined sections for respectively situation, problem, solution and evaluation. Line 2 briefly states the situation and stipulate that litigations are inefficiency and unavailing, whereas lines 5 - 9 elaborate on the matter and describe the problem. The solution is diminutive stated in line 13, and bluntly claim their solution to be correct and de jure. The evaluation starts in line 13 and reaches a interim conclusion in line 15, and the remainder of the text can be seen as an elaborative evaluation of the litigations, and ends abruptly in line 52 without an actual conclusion. The move structure is rather unusual, as the evaluation constitutes the vast majority, hence the textual analysis will primarily revolve around the lines 1 - 15, and incorporate the evaluation as supplementary information. The media text embraces all of the appeal forms to a certain degree, and uses argumentative discourse to persuade the reader. The primary appeal form is undeniably logos, which also aligns with the previously defined expository move structure. With the primary focus on logos, PMI undertake a historical approach to persuade the reader of litigation being insufficient as a means of control. An example of logos is found in line 38 - 44, where PMI elaborate on past and ongoing litigations. PMI utilize repetitions and enumerations of the countries implicated, which substantiate and emphasize PMI’s...
Words: 1172 - Pages: 5
... was a prisoner of war (between the years 1863 through June 1865) and would later in history be considered one of the immortal 600. The immortal 600 were prisoners of war who were sent to Morris Island in Charleston Harbor which was an area that was in direct line of fire from the Confederate guns of fort Sumter. He eventually survived the war and went back home, where he married Lottie Putman and spent his days as an engineer and postmaster for Radford, Virginia. Richard H. Adams died in Radford, Virginia in October 1896. What remains of Richard H. Adams Jr. is 47 original letters dated from November 1863 to September 1866 all written by Richard H. Adams Jr. Including a manuscript dairy that he kept while serving the 5th Alabama Regiment in Virginia dated April 1862 - May 1862, transcriptions of two other diaries that were kept on which included a prison diary, a script of Wheelers raids which was written after war, a friendship book with fellow prisoners names, 2 pictures of Richard H. Adams Jr. and various clippings/documents. There were also 23 original letters addressed to Richard H. Adams Jr. from his wife Lottie Putnam written between, March 1864 to January 1865. The letter I picked from remains of Richard H. Adams is one that was written while he was a prisoner of war and on Morris Island....
Words: 749 - Pages: 3
...from Man Belonging... (Gyldendal,1977) Morris Lurie.' Home Is Magazine,1974)' (fronrStories from the Transatlaittic I{orris Lurie. Rorn in 1938 in Melbourne,Australia, but now living in London. His literary activity consists of novels, ,,Rappaport" and ,,Tlze London Jungle Adventures of Charlie Hope", short stories,,,Happy Times", and a children's book, 27llt,Armual Af rican HippopotamusRace". ,,Th.e Morris Lurie HomeIs ( 116t ) He lived in New York and in London and on the isle of Rhodes, and in Paris there was always a room for him at Peter Stein's place with a view of grey slate roofs and the Seine, and in Prague Bob Turner who taught English chose at the University liked to have him but he sometimes a hotel (Bob's children were nice, but he didn't like having to tiptoe around when they were asleep),and in Beirut and in Istanbul and in West Berlin and in Rome he always stayed in hotels,though he had friends, good friends, in all these places, and he had friends in Athens too but he preferred the Grand Bretagne, and now, as the plane he was in touched down on Rhodes,he closedthe book he was reading (poems; For the Union Dead) and sat baik and waited for the plane to stop. He closedhis eyes.And Home Is 59 when he felt no movementhe openedthem and unlocked his seat belt and reached up for his hat and then made his lvay along the aisle and down the stepsand srniled at the hostess and then looked up and for a secondhe was completely lost...
Words: 3946 - Pages: 16
...During the Victorian era, there was a rise in tension between the Protestant church and the Catholic church. The majority of people in England practiced Protestant religion, but Dracula is about a blood-thirsty vampire that meets his demise with the use of the Catholic religion. Mina, Jonathan Harker, Van Helsing, John Seward, Arthur Holmwood and Quincey Morris use a variety of symbols from Catholicism that kills Dracula and protects them from being harmed. Dracula is a Satanic being that in the end meets his defeat by the power of God. In the novel Dracula, Bram Stoker uses various Catholic symbols in the fight against Dracula, the antichrist, to illustrate the good of the Catholic religion and the promise of its salvation. The crucifix is...
Words: 1898 - Pages: 8
...[pic] May 2001, Volume 69, Number 3 Credit Card Revolutionary In the conservative world of banking and finance, it takes a bold and passionate leader like Richard Fairbank, MBA ’81, to change an industry. By MIKE McNAMEE HAVE YOU EVER TRIED TO EXPLAIN a credit card to a child—why the supermarket will give you valuable items like Fruit Loops, Lunchables, and pudding cups, and all you do is swipe a piece of plastic through a machine? “It’s like, the bank gives the money to the store, then the bank sends me a bill, and ... well, it’s kinda complicated.” If you think that’s tough, try to see your credit card the way Richard D. Fairbank does. To the founder and CEO of Capital One Financial Corp., that slab of plastic is the key to an information machine—a machine fueled by data on who you are, what sort of people you live among, whether you’ll carry a balance or avoid finance charges at all costs. This data machine may offer the closest thing ever invented to perpetual motion, because the more you use the card, the more data it produces. The machine takes your bytes, combines them with transactions by millions of other cardholders—and before long, it can pinpoint what you’re likely to buy next, whether you’ll respond to a pitch for long-distance telephone service, and how likely you are to sign up for Internet banking. Fairbank, MBA ’81, built that data machine—and revolutionized the credit industry. Before Fairbank, all credit cards cost the same: 19.8% annual percentage...
Words: 3414 - Pages: 14
...): Phillip Morris International has successfully become the number one tobacco company in Indonesia and it owns 30% of the market. PMI has had its success because of targeting children as customer for their tobacco products such as cigarettes knowing “Since 1st October 2007 it is illegal to sell tobacco products to anyone under 18 years of age.” In a poverty place like Indonesia, there are very few regulations on selling and consumption of tobacco; PMI is using this to advertise directly to children. There are billboards promoting PMI’s cigarettes outside schools in the capital city of Indonesia. Children are very easily influenced because of their insufficient knowledge; a prime example is the “Smoking Baby” who became a YouTube superstar after a video was posted of the baby smoking cigarettes. The two year old baby smoked 20 cigarettes a day. Furthermore, a two year old baby whose grandfather allows him to smoke because it “tastes good.” PMI has increased revenue by the sales of cigarettes as the youth smoking rates have doubled, and the CEO of the company had this to say ,"I think we're doing the most responsible thing in Indonesia and that we've been very vocal advocates for restrictions." Moral problem: Should Phillip Morris International target children as customers of their poisonous tobacco products to increase revenue given that: (1) it is illegal to advertise and sell cigarettes to children; and (2) there are few regulations on tobacco in a poverty country like Indonesia...
Words: 721 - Pages: 3
...name from their conviction that after the Italian painter Raphael (1483-1520), European art and poetry took a wrong turn toward representational realism and away from symbolism and simplicity. The poetry and art of the English Pre-Raphaelites, consequently, celebrated sensuality, minute detail, formal simplicity, and a symbolic system emulating medieval iconography. It is true, as Rossetti’s most recent critics have maintained, that she cannot be considered merely a passive learner of Pre-Raphaelitism—indeed, she must have influenced it as much as it influenced her. She was there at its beginning, and Goblin Market, and Other Poems was the first poetic voice of the movement, shining in popular and critical praise while the poetry of William Morris and Dante Gabriel Rossetti lingered unnoticed. Her connection with the movement may be overemphasized, but it cannot be ignored. The Oxford Movement, on the other...
Words: 979 - Pages: 4
...Why do humans always become disappointed when their favorite novels become films? It is because adaptations of films tend to sway from the truth of the novels. The same common belief may be illustrated in both the film and the novel, but major alterations are made in the film to make it more exciting, attention grasping, and addicting. Dracula by Bram Stoker is just another novel made into the film Bram Stoker’s Dracula by Francis Ford Coppola. Distinct changes take place from the novel on paper to the film on the screen. The characters of Dracula, Lucy, and Mina tend to share some of the same characteristics in both the film and novel, but the movie changes aspects of the characters to be more sensational and dramatic. Just as the characters are changed and reshaped, the plot has tweaks of its own. The novel and the film have similarities, but the differences are clearly visible. Count Dracula is portrayed as animal and beast-like in both Dracula and Bram Stoker’s Dracula; he also displays aspects of humanity. Within Dracula, Count Dracula survives by quenching his thirst for blood. He is driven by this yearning for blood and nothing seems to get in his way. He has the attributes of a lion in search of its prey and feeding off of it; he cannot control it, nor does he want to stop. Killing does not disturb him in the least, and he is in search of power. He displays the characteristics of a beast through his continual vicious, grueling slaughtering of his prey- humans. He feels...
Words: 2089 - Pages: 9