Thursday, October 10, 2019
Animal Farm and Lord of the Flies Essay
In 1887 Lord Acton wrote in a letter to Bishop Mandell Creighton, ââ¬Å"Power tends to corrupt, and absolute power corrupts absolutely.â⬠It has often been noted that this is the primary theme in both Animal Farm and Lord of the Flies. In addition, these books share two sub-themes related to this primary theme. One sub-theme is that people will often abuse power when itââ¬â¢s not earned. The other is that when given the opportunity people will often degrade others to ensure their own security. Both books rely heavily on symbolism, as well as the actions of their characters, to express these ideas. Consequently, both these novels show us what a frightening place the world can become if people ignore the principles of civilization as we know it. In both books, for different reasons, the characters create their own governments, and some of them soon begin to usurp and abuse power. For example, in Animal Farm seven commandments were written on the wall, a few of them were: ââ¬Å"No animal shall sleep in a bed, No animal shall kill another animal, No animal shall drink alcohol.â⬠When one of the pigs, named Napoleon, took over he gradually changed the commandments. For instance, he changed the commandment ââ¬Å"No animal shall kill another animal.â⬠to, ââ¬Å"No animal shall kill another animal without cause.â⬠In Lord of the Flies there are several examples of characters abusing power. One of the characters, named Ralph, had originally started a democratic form of government. Two of the boys, Roger and Jack, eventually started there own form of government and took over. Jack fell in love with his new found power and became dictator to the boys. He even started a hunt to kill Ralph simply because he felt Ralph was a threat to this power. Because several of the characters in both books were insecure, they would often degrade others to improve their own security. This occurred in Animal Farm several times. For instance, there were two characters who always seemed to disagree (Snowball and Napoleon). Whatever one said the other would put it down or find something wrong with it, even if he actually agreed. Napoleon even urinated on Snowballââ¬â¢s plans for a windmill and ruinedà them. In Lord of the Flies there are several examples of insecure characters downing others to improve their own security. For example, Roger, Jack, and even Ralph make fun of one of the other boys they call ââ¬Å"Piggyâ⬠because he is overweight. Roger is so insecure he even kills Piggy because Piggy makes him feel threatened by contradicting his ideas and putting forth his own ideas that were sometimes better than Rogers. These books are both amazingly written and similar in several ways, but there is one major difference. The two books end with completely different views of civilization. Animal Farm ends with the animals not being able to tell the humans and the pigs apart, showing that evil had won. However, in Lord of the Flies, Ralph realizes when he sees the pigââ¬â¢s head (which is used to represent evil) in its pristine state, that even in all this savagery and evil some good may occur. Right after he realized this, a ship pulled up and rescued the boys. The themes of both books are true to the dark side of human nature. Golding holds out a tiny thread of hope; Orwell lets us see the bad things that could happen and leaves us to figure out how to prevent them.
Wednesday, October 9, 2019
Compiler
ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD (Department of Computer Science) WARNING 1. PLAGIARISM OR HIRING OF GHOST WRITER(S) FOR SOLVING THE ASSIGNMENT(S) WILL DEBAR THE STUDENT FROM AWARD OF DEGREE/CERTIFICATE, IF FOUND AT ANY STAGE. 2. SUBMITTING ASSIGNMENT(S) BORROWED OR STOLEN FROM OTHER(S) AS ONEââ¬â¢S OWN WILL BE PENALIZED AS DEFINED IN ââ¬Å"AIOU PLAGIARISM POLICYâ⬠. Course: Compiler Construction (3468)Semester: Autumn, 2012 Level: BS (CS)Total Marks: 100 ASSIGNMENT No. 1 Note: All questions carry equal marks. Q. 1(a)Define Compiler, using a diagram describes the three phases of analysis of source program. (b)Explain all the phases of Compiler. c)Consider the following grammar. S ? > XaYb X ? > bXc | b Y ? > dYa | d Find the first sets for each non-terminal of the given grammar. Q. 2(a)Explain the error detection and reporting mechanisms. (b)Write the intermediate representation code of the following position: = initial + rate * 60 Q. 3(a)Convert the following NFA into equivalent DFA using subset construction Algorithm. [pic] Note:Show all necessary steps that are involved in subset construction algorithm. (b) Convert the Following regular expression into NFA using Thompsonââ¬â¢s construction. a ((b|b*c)d)* |d*a Q. 4(a)Given the following grammar. G > EE > T + E | T T > F * T | F F > a i) Is this grammar ambiguous? Explain! ii) Draw all parse trees for sentence ââ¬Å"a+a*a+aâ⬠. (b) Consider the following grammar. S> A A> A+A | B++ B > y Draw parse tree for the input ââ¬Å"y+++y++â⬠Q. 5(a)Explain the role of the Lexical Analyzer and Parser in detail. (b)Differentiate between Top-down parsing and Bottom-up parsing. ASSIGNMENT No. 2 Total Marks: 100 Note: All questions carry equal marks. Q. 1(a)Rewrite the following SDT: A A {a} B | A B {b} | 0 B -> B {c} A | B A {d} | 1 so that the underlying grammar becomes non-left-recursive. Here, a, 6, c, and d are actions, and 0 and 1 are terminals. b)This grammar generates binary numbers with a ââ¬Å"decimalâ⬠point: S-* L . L | L L-+LBB B -> 0 | 1 Design an L-attributed SDD to compute S. val, the decimal-number value of an input string. For example, the translation of string 101. 101 should be the decimal number 5. 625. Q. 2(a)Translate the following expressions using the goto-avoiding translation scheme. i)if (a==b kk c==d |I e==f) x == 1; ii)if (a==b II c==d || e==f) x == 1; iii)if (a==b && c==d kk e==f) x == 1; (b)Construct the DAG and identify the value numbers for the sub expressions of the following expressions, assuming + associates from the left. ) a + b+ (a + b). ii) a + b + a + b. iii) a + a + ((fl + a + a + (a + a + a + a )). Q. 3(a)Explain the following i)Back Patching ii)Procedure Calls (b)Generate code for the following three-address statements, assuming all variables are stored in memory locations. i) x = 1 ii) x = a iii) x = a + 1 iv) x = a + b v) The two statements x = b * c y = a + x Q. 4(a)The programming language C does not have a Boolean type. Show how a C compiler might translate if-statement into three-address code. (b)Construct the DAG for the basic block d = b * c e = a + b b = b * c a = e ââ¬â d Q. (a)Generate code for the following three-address statements assuming a and b are arrays whose elements are 4-byte values. i)The four-statement sequence x = a [ i] y = b [ j] a [ i ] = y b [ j ] = x ii) The three-statement sequence x = a [ i] y = b [ i] z = x * y iii) The three-statement sequence x = a [ i] y = b[x] a [ i ] = y (b)Suppose a basic block is formed from the C assignment statements x = a + b + c + d + e + f; y = a + c + e; i) Give the three-address statements (only one addition per statement) for this block. ii) Use the associative and commutative laws to modify the block to use the fewest possible number of 468 Compiler ConstructionCredit Hours: 3(3, 0) Recommended Book: Compliers; Principles, Techniques, and Tools by Alfred V. Aho, Ravi Sethi, Jerrey D. Ullman Course Outlines: Unit No. 1 Introduction to Compiling Compliers, analysis of the source program, the phases of a complier, cousins of the compiler, the grouping of phases, complier-construction tools Unit No. 2 A Simple One-pass Compiler Overview, syntax definition, syntax-directed translation, parsing, a translator for simple expressions, lexical analysis, incorporating a symbol table, abstract stack machines, putting the techniques together Unit No. Lexical and Syntax Analysis Lexical analysis (the role of the lexical analyzer, input buffering, specification of tokens, recognition of tokens, a language for specifying lexical analyzers, finite automata, from a regular expression to an NFA, design of a lexical analyzer generator, optimization of DFA-based pattern matchers), syntax analysis (the role of the parser, context-free grammars, writing a grammar, top-down parsing, bottom-up parsing, operator-precedence parsing, LR parsers, using ambiguous grammars, parser generators) Unit No. 4 Syntax-Directed TranslationSyntax-direc ted definitions, construction of syntax trees, bottom-up evaluation of s-attributed definitions, l-attributed definitions, top-down translation, bottom-up evaluation of inherited attributes, recursive evaluators, space for attribute values at compile time, assigning space at complier-construction time, analysis of syntax-directed definitions Unit No. 5 Type Checking Type systems, Specification of a simple type checker, Equivalence of type expressions, Type conversions, Overloading of functions and operators, Polymorphic functions, an algorithm for unification Unit No. Intermediate Code Generation Intermediate Languages, Declarations, Assignment statements, Boolean expressions, Case statements, Back Patching, Procedure calls Unit No. 7 Code Generations Issues in the design of a code generator, The target machine, Run-time storage management, Basic blocks and flow graphs, Next-use information, A simple code generator, Register allocation and assignment, The dag representation of basic blocks, Peephole optimization, Generating code from dags, Dynamic programming code-generation algorithm, Code-generator generators Unit No. Code Optimization Introduction, The principal sources of optimization, Optimization of basic blocks, Loops in flow graphs, Introduction to global data-flow analysis, Iterative solution of data-flow equations, Code-improving transformations, Dealing with aliases, Data-flow analysis of structured flow graphs, Efficient data-flow algorithms, A tool for data-flow analysis, Estimation of types, Symbolic debugging of optimized code Unit No. Writing a Complier Planning a compiler, Approaches to compiler development, The compiler-development environment, Testing and maintenance, A Look at Some Compilers, EQN, a preprocessor for typesetting mathematics, Compilers for Pascal, The C compilers, The Fortran H compilers, The Bliss/11 compiler, Modula-2 optimizing compiler
Significance of the Watergate Scandal Essay Example | Topics and Well Written Essays - 750 words
Significance of the Watergate Scandal - Essay Example When it was later found out that the people were under the presidentââ¬â¢s payroll, the case led to his indictment. This was after running for re-election, in 1972, and winning. This paper will review the significance of this event, and some of the changes that followed in the U.S. policies after this event. It is true that this event shaped the countryââ¬â¢s law after it erupted. Those involved were either directly or indirectly in the committee that was campaigning to re-elect the president. After all these events and the eventual resignation of the president, some changes in the laws were evident (Henretta and Jonathon 2009, 859). One of the changes that became clear to the people was the fact, ââ¬Å"politicians could no longer be trusted.â⬠This is what led to the election of a rather unknown party to be president. This was in the year 1977, when Jimmy Carter became president of the United States. The scandal gave the American people disillusionment about their govern ment. ââ¬Å"It was during this period that people started having different thoughts about the war in Vietnam.â⬠The presidentââ¬â¢s powers had to be curtailed due to the above reasons. They were curtailed in the sense that, the president had limited powers, especially when it came to matters concerning the stateââ¬â¢s money, the deployment of troops to war, and the freedom to information. The National Congress was responsible for this move which was largely appreciated by the people in the United States. ââ¬Å"The War Powers Act, reining on the presidentââ¬â¢s powers to deploy U.S. forces without congressional approval.â⬠During this move, there was evidence that proved one thing; no one is above the law, not even the president. During the curtailing of the presidentââ¬â¢s powers, the freedom of the press got a new meaning (Henretta and Jonathon 2009, 860). All this was in the first amendment, in the constitution. If it is true, then, ââ¬Å"it is the pressâ â¬â¢s responsibility to print it regardless of the position or power of those involved.â⬠In another area, the Freedom of the Information Act became stronger. This meant, ââ¬Å"People could now get access to government documents that are accessible to the public.â⬠If the people of the state feel like they need to get information about some of the governmentââ¬â¢s activities, then it is possible to get documents with information (Henretta and Jonathon 2009, 860). These documents can let them know about what the government is about to do. If they happen to, ââ¬Å"agree or disagree with any of their activities, it is their fundamental right to do so.â⬠To date, government related documents are located online (Biagi 2011, 97). The internet can allow anyone, and everyone in the world to access government related documents. This is in order to find out what the powerful nation is doing, and if it is legal under the constitution. Through this event, the constitutionà ¢â¬â¢s and peopleââ¬â¢s belief in the system was affirmed. ââ¬Å"The belief of equality and justice became a reality to many.â⬠It became evident even to the highest office in the land, that is, the presidentââ¬â¢s office. The people in the scandal got to understand the full extent of the law. It was while in office that the president operated on a level one would consider full of arrogance (Henretta and Jonathon 2009, 860). However, as the law demanded that they pay the price for their actions, they could no longer ignore the fact, ââ¬Å"they were not above the law.ââ¬
Monday, October 7, 2019
The Impact of the Euro Since its Launch Dissertation
The Impact of the Euro Since its Launch - Dissertation Example The currency had also to revive itself from the initial downturn it suffered and later to sustain the growth achieved by it as an international currency. This paper presents the major advantages and disadvantages of the currency as a single currency and the impact it created on the various economic fronts since its inception. The major purpose of introduction of Euro was to take on the challenges of competition posed by the growing attitude of globalization. The other object envisaged by the European Union through the introduction of Euro was to overcome the barriers imposed by the diversities posed by the different economies. These diversities are caused by the conflicting monetary and fiscal policies of the various governments and the multifarious tariffs and restrictions placed on trade and investment. Before the introduction of Euro the euro-zone currencies were greatly influenced by the rise or fall in the rate of US dollar. The introduction and existence of euro has led to the positive impact of alleviating the financial crisis faced by the euro-zone countries since 1998. Further positive effects of the common European currency in the form of price stability, cheaper and better banking facilities, increase in the competitiveness of the industrial enterprises and welfare of the consumers in general have resulted during the last 8 years of the existence. Most generally the vastness of the European internal market with a single currency made Europe a potential competitor to the market of the US.
Sunday, October 6, 2019
CTA #4 Essay Example | Topics and Well Written Essays - 250 words
CTA #4 - Essay Example This is because most of his behaviours were contrary to how a coach should be. The coach should be available for the function of reinforcement, provide feedback to the employees with respect to their performance and motivate them. Instead, the supervisor was rarely available to act as reinforcement and feedback was provided rarely. My goal in future is to ensure that I function as a coach who understands the importance of coaching and the aspects involved that include feedback and motivating. This will ensure that I become a better leader in the organization. The time frame for submitting feedback to the employees would be the shortest possible because they like keeping track of their performance so that they can improve in the areas that are proven wanting. Success would be measured through comparing present and previous employee performances. If anticipated outcomes are realized, then the practice is maintained. If otherwise, additional strategies are applied until the expected results are
Saturday, October 5, 2019
Fast Food, are we taking it too far by blaming fast food restaurants Research Paper
Fast Food, are we taking it too far by blaming fast food restaurants for obesity - Research Paper Example Opponents of the fast food industry tend to compare fast food to cigarettes, saying that smoking one cigarette pack a day is not more harmful for health than eating three big macs a day. ââ¬Å"The concept of ââ¬Å"Big Foodâ⬠litigation [was] crafted along the line of ââ¬Å"Big Tobaccoâ⬠litigationâ⬠. Cigarettes and fast food deteriorate health in their own respective ways, and there is nothing untrue about it. However, cigarettes are a means of consumption of smoke whereas food is fundamentally a source of nutrition, no matter how fatty that may be. Overeating can always cause obesity, whether or not fast food is consumed. If three big macs are to be equalized to one pack of cigarettes, this is no reason to sue the fast food companies because they never ask their customers to consume three big macs in a single day. It is up to the customers what they eat and how much they eat. Cigarettes are totally the pollutants for lungs whereas fast food is also rich in proteins and carbohydrates in addition to fats. If any food that contains fat and carbohydrate is to be blamed for obesity, health conscious people should resort to taking protein tablets and eat nothing, because anything they would eat would have some proportion of fat and carbohydrates in their contents. After all, it is the natureââ¬â¢s decision, and is so because fats and carbohydrates are necessary for health, though if consumers can not keep themselves from overeating, it is they who should be sued instead of the fast food companies.... any food that contains fat and carbohydrate is to be blamed for obesity, health conscious people should resort to taking protein tablets and eat nothing, because anything they would eat would have some proportion of fat and carbohydrates in their contents. After all, it is the natureââ¬â¢s decision, and is so because fats and carbohydrates are necessary for health, though if consumers can not keep themselves from overeating, it is they who should be sued instead of the fast food companies. Robert Sweet, the US District Judge rightly said, ââ¬Å"If consumers know (or reasonably should know) the potential ill health effects of eating at McDonald's, they cannot blame McDonald's if they, nonetheless, choose to satiate their appetite with a surfeit of supersized McDonald's productsâ⬠(Sweet cited in Collins). In order to get to the root cause of the problem, it is useful to find out what has stimulated fast food companies to sell food rich in fat. Fat happens to be the most typic al source of taste in any kind of food. Take a piece of bread and eat it, it wonââ¬â¢t taste good enough. Application of a spoonful of butter or cheese on it would enhance its taste manifolds. Even in homes, people frequently make use of dairy products rich in fat content like cottage cheese, butter, cream and milk. In fact, there are many obese people who do not at all go to the fast food restaurants. Many people are genetically obese. Two children, who are brought up in similar circumstances, are of same age and consume same food can not be expected to have the same body mass index. One might be very skinny and the other might be obese. It is the way an individualââ¬â¢s body reacts to the food consumed that makes a difference. Many people remain on diet 24/7 and are yet obese. Yet there are others who
Friday, October 4, 2019
International Outsourcing of Clothing Industry Dissertation
International Outsourcing of Clothing Industry - Dissertation Example At international level several attempts have been made by the international trading bodies like WTO to liberalize the trade system and as a result there is increase in the outsourcing of different industries. Globalization has drawn lasting effects on the clothing industry as well and global outsourcing is occurring in the industry at increasing rates. Outsourcing of different industries draws significant impacts of the performance of that industry as well as on the entire economy. There are different view points about the potential effects of global outsourcing. Some researchers (e.g. Antras, Helpman, 2004) believe that increased global outsourcing cause unemployment of thousands of domestic highly skilled professionals as the companies offer the employment opportunities to the labor of another country from where they might get the labor at low wages or salaries. On the other hand some social scientists (e.g. Bruce S. Berton, 2004; Amiti, Wei, 2005) strongly believe that the economies in the 21st century must need outsourcing in different industries because it bring variety of benefits and advantages to the countries like the consumers get more choices available in front of them and they also have an easy access to purchase the products at different levels of distribution. Along with these effects of global outsourcing attempts are also made to examine the impacts of outsourcing on the workforce of the countries (e.g. Campa and Linda S. Goldberg 1997; Maria Pia Hernandez, 2004). Despite the fact the a considerable portion of literature is concerned with examining the effects of global outsourcing on industries and the economies, there are few researches that study the impact of global outsourcing of clothing... The dissertation unfolded the international outsourcing of the clothing industry from the US and also provided the information about the various issues that are related to the clothing industry outsourcing. It came out from the study the clothing industry is being outsourced internationally from America for many years ago. It means that there is enough awareness in the businesses of the American clothing industry that they paid attention towards the outsourcing and discovered that the outsourcing will provide them certain benefits. As a result of this thinking outsourcing of clothing industry by the US, clothing firms become a common practice and many of the famous brands also get their clothing assembled in other countries where the manufacturing cost is less than America. The two important factors that were pointed out as the main player that encourage the outsourcing of industries (Technology advancement and Trade liberalization measures) also played an active role in the internat ional outsourcing of the US clothing industry. The clothing firms of US is not only facilitated by the technology to get into the outsourcing practice but the favorable investment and trade condition also makes it possible that the companies to look towards international outsourcing and save the money that is saved from the labor salaries. The clothing industry mostly looks towards the positive consequences of the international outsourcing and they do not take much care of the matter that what will happen to the skill and unskilled labor of home country.
Subscribe to:
Posts (Atom)