Please help me with these 2 quesitons

Question Answered step-by-step Please help me with these 2 quesitons Image transcription textMini Case: How To Keep Your FoodSupply Chain Fresh As consumersdemand greater food vari… Show more… Show moreImage transcription textSo, of the two available systems(push vs. pull), which one delivers”fresher” res… Show more… Show morePlease help me with these 2 quesitons Business Economics Macroeconomics INFS 5871 Share QuestionEmailCopy link Comments (0)

What are the four types of processes that cycle matter through the…

Question What are the four types of processes that cycle matter through the… Image transcription textWhat are the four types of processes that cycle matter through the biosphere. ive an example of each…. Show more Science Biology Share QuestionEmailCopy link This question was created from 3.4 Nutrient Cycles.ppt.pdf Comments (0)

The nurse is assessing vital signs for children. Which patient…

Question Answered step-by-step The nurse is assessing vital signs for children. Which patient… The nurse is assessing vital signs for children. Which patient finding would be most concerning? Health Science Science Nursing RNSG 2201 Share QuestionEmailCopy link Comments (0)

Why does an organism need energy and a constant supply of…

Question Why does an organism need energy and a constant supply of… Image transcription text7. Why does an organism need energy and a constant supply of materials? to live… Show more Science Biology Share QuestionEmailCopy link This question was created from Copy of Unit 1 Reading Guide & Practice.pdf Comments (0)

Give a brief account of how four of the following features of…

QuestionAnswered step-by-stepGive a brief account of how four of the following features of…Give a brief account of how four of the following features of general programming systems can be modelled in terms of a form of un-typed functional programming where none of the mentioned facilities are provided as built-in features. When selecting your examples and preparing your explanations, arrange that at least one of the four cases could be carried out using a typical polymorphically typed functional language while at least one would lead to type-checking problems. (a) Tuples (it will be sufficient to consider just the case of pairs). (b) Boolean quantities and an if /then/else construct. (c) Lists (both empty and non-empty). (d) Recursive function definitions. (e) The numbers 0, 1, 2, . . . , with the associated operations of a zero test, addition and multiplication. [4 marks each] Explain the issues about type checking for all of the examples you have given.Give as simple a set of rules as you can for transforming lambda calculus to a form where there are no bound variables mentioned, but where there are many instances of the three standard combinator constants S, K and I. [6 marks] Describe tree-rewrites suitable for reducing expressions written in terms of combinators. [6 marks] Explain how you might deal with the issue of keeping track of the values of bound variables if you were to interpret lambda calculus directly.(a) (i) Consider a random variable X with moment generating function MX(t). State Chernoff’s bound for the probability P(X ? a) where a is a constant. [2 marks] (ii) If X ? Binomial(n, p) apply Chernoff’s bound to X and minimize the upper bound over the values t > 0 to show that for np < a < 8 marks] (b) An online service company receives n tasks per unit time and wishes to serve these tasks using m servers. The allocation of the tasks to the servers is by a randomized load balancing strategy that assigns each of the n tasks independently and uniformly to one of the m servers. Each server can serve up to and including t tasks per unit time without becoming overloaded. Let Xi for i = 1, 2, . . . , m be the random number of tasks assigned to the i th server in a given unit of time. (i) What is the marginal distribution of Xi for each i w that P(Ym ? a) ? mP(Xi ? a) i = 1, 2, . . . , m . You may assume without proof that if A1, A2, . . . , Ar are random events then P(? r i=1Ai) ? Pr i=1 P(Ai). [2 marks] (iv) The company asks your advice about a suitable number of servers to rent so that the probability that at least one of the servers is overloaded in a given unit of time is no greater than 0.01. Determine an expression for the least value of m such that the stated criterion is met. [3 marks](a) (i) A variable-length, uniquely decodable code that has the prefix property and whose N binary code word lengths are n1 ? n2 ? n3 ? · · · ? nN must satisfy what condition with these code word lengths? (Give an expression for the condition, and its name, but do not attempt to prove it.) [3 marks] (ii) Construct an efficient, uniquely decodable binary code, having the prefix property and having the shortest possible average code length per symbol, for an alphabet whose five letters appear with these probabilities: Letter A B C D E Probability 1/2 1/4 1/8 1/16 1/16 [3 marks] (iii) How do you know that, on average, for samples drawn from this alphabet, your code uses the shortest possible code length per symbol? Demonstrate numerically that your code satisfies this optimality condition. [3 marks] (b) (i) Explain how autocorrelation can remove noise from a signal that is buried in noise, recovering a clean signal. For what kinds of signals, and for what kinds of noise, will this work best, and why? What class of signals can be recovered perfectly by autocorrelation? Begin your answer by writing down the integral that defines the autocorrelation of a signal f(x). [3 marks] (ii) Some sources of noise are additive (the noise is just superimposed onto the signal), but other sources of noise are multiplicative in their effect on the signal. For which type would the autocorrelation clean-up strategy be more effective, and why? In the case of additive noise where noise and signal occupy different frequency bands, what other strategy could allow recovery of a clean signal? [3 marks] (c) (i) If a continuous signal f(t) is modulated by multiplying it with a complex exponential wave exp(i?t) whose frequency is ?, what happens to the Fourier spectrum of the signal? Name a very important practical application of this principle, and explain why modulation is a useful operation. How can demodulation then recover the original signal? [3 marks] (ii) Which part of the 2D Fourier Transform of an image, the amplitude spectrum or the phase spectrum, is indispensable in order for the image to be intelligible? Describe a demonstration that proves this. [2 marks](a) Suppose that women who live beyond the age of 80 outnumber men in the same age group by three to one. How much information, in bits, is gained by learning that a person who lives beyond 80 is male? [2 marks] (b) Consider n discrete random variables, named X1, X2, . . . , Xn, of which Xi has entropy H(Xi), the largest being H(XL). What is the upper bound on the joint entropy H(X1, X2, . . . , Xn) of all these random variables, and under what condition will this upper bound be reached? What is the lower bound on the joint entropy H(X1, X2, . . . , Xn)? [3 marks] (c) If discrete symbols from an alphabet S having entropy H(S) are encoded into blocks of length n symbols, we derive a new alphabet of symbol blocks S n . If the occurrence of symbols is independent, then what is the entropy H(S n ) of this new alphabet of symbol blocks? [2 marks] (d) Consider an asymmetric communication channel whose input source is the binary alphabet X = {0, 1} with probabilities {0.5, 0.5} and whose outputs Y are also this binary alphabet {0, 1}, but with asymmetric error probabilities. Thus an input 0 is flipped with probability ?, but an input 1 is flipped with probability ?, giving this channel matrix p(yk|xj ): 1 ? ? ? ? 1 ? ? (i) Give the probabilities of both outputs, p(Y = 0) and p(Y = 1). [2 marks] (ii) Give all the values of (?, ?) that would maximise the capacity of this channel, and state what that capacity then would be. [3 marks] (iii) Give all the values of (?, ?) that would minimise the capacity of this channel, and state what that capacity then would be. [3 marks] (e) In order for a variable length code having N codewords with bit lengths {n1, n2, n3, · · · , nN } to satisfy the prefix property, what condition must be satisfied? (Express the condition, but do not try to prove it.) [1 mark] (f ) The information in continuous signals which are strictly bandlimited (lowpass or bandpass) is quantised, in that such continuous signals can be completely represented by a finite set of discrete samples. Describe two theorems about how discrete samples suffice for exact reconstruction of continuous bandlimited signals, even at all the points between the sampled values. [4 mark(a) A two state Markov process emitsthe letters {A, B, C, D, E} with theprobabilities shown for each state.Changes of state can occur whensome of the symbols are generated,as indicated by the arrows.4.2 Information sources with memoryWe will wish to consider sources with memory, so we also consider Markovprocesses. Our four event process (a symbol is generated on each edge) isshown graphically together with a two state Markov process for the alphabetfA, B, C, D, Eg in  gure 17. We can then solve for the state occupancy usingow equations (this example is trivial).Figure 17: Graphs representing memoryless source and two state Markov processIn general then we may dene any  nite state process with states fS 1; S2; : : :Sng,with transition probabilities pi(j) being the probability of moving from state Sito state Sj (with the emission of some symbol). First we can dene the entropyof each state in the normal manner:Hi = Xjpi(j) log2 pi(j)and then the entropy of the system to be the sum of these individual stateentropy values weighted with the state occupancy (calculated from the  owequations):H = XiPiHi= XiXjPipi(j) log pi(j) (45)Clearly for a single state, we have the entropy of the memoryless source.4.3 The Source Coding theoremOften we wish to eciently represent the symbols generated by some source.We shall consider encoding the symbols as binary digits.19(i) What are the state occupancy probabilities? [1 mark](ii) What is the probability of the letter string AD being emitted? [1 mark](iii) What is the entropy of State 1, what is the entropy of State 2, and what isthe overall entropy of this symbol generating process? [5 marks](b) A fair coin is secretly flipped until the first head occurs. Let X denote thenumber of flips required. The flipper will truthfully answer any "yes-no"questions about his experiment, and we wish to discover thereby the value of Xas efficiently as possible.(i) What is the most efficient possible sequence of such questions? Justify youranswer. [2 marks](ii) On average, how many questions should we need to ask? Justify youranswer. [2 marks](iii) Relate the sequence of questions to the bits in a uniquely decodable prefixcode for X. [1 mark](c) Define complex Gabor wavelets, restricting yourself to one-dimensional functionsif you wish, and list four key properties that make such wavelets useful forencoding and compressing information, as well as for pattern recognition.Explain how their self-Fourier property and their closure under multiplication(i.e. the product of any two of them is yet again a Gabor wavelet) gives themalso closure under convolution. Mention one disadvantage of such wavelets forreconstructing data from their projection coefficients. [8 mark(a) Consider an alphabet of 5 symbols whose probabilities are as follows: A B C D E 1 16 1 4 1 8 1 16 1 2 One of these symbols has been selected at random and you need to discover which symbol it is by asking 'yes/no' questions that will be truthfully answered. (i) What would be the most efficient sequence of such questions that you could ask in order to discover the selected symbol? [2 marks] (ii) By what principle can you claim that each of your proposed questions in the sequence is maximally informative? [2 marks] (iii) On average, how many such questions will need to be asked before the symbol is discovered? What is the entropy of the symbol set? [2 marks] (iv) Construct a uniquely decodable prefix code for the symbols. Explain why it is uniquely decodable and why it has the prefix property. [2 marks] (v) Relate the bits in the code words forming your prefix code to the 'yes/no' questions that you proposed in (i). [2 marks] (b) Explain how the bits in an IrisCode are set by phase sequencing. Discuss how quantisation of the complex plane into phase quadrants sets each pair of bits; why it is beneficial for quadrant codes to form a Gray Code; how much entropy is thereby typically extracted from iris images; and why such bit sequences enable extremely efficient identity searches and matching. [5 marks] (c) Consider a noisy analog communication channel of bandwidth ? = 1 MHz, which is perturbed by additive white Gaussian noise whose total spectral power is N0? = 1. Continuous signals are transmitted across such a channel, with average transmitted power P = 1,000. Give a numerical estimate for the channel capacity, in bits per second, of this noisy channel. Then, for a channel having the same bandwidth ? but whose signal-to-noise ratio P N0? is four times better, repeat your numerical estimate of capacity in bits per second. [5 marks]Continuous MathematicsThe complex form of the Fourier series is:f(x) =+?Xk=??ckei2?kxwhere ck is a complex number and ck = c??k.(a) Prove that the complex coeffiffifficient, ck, encodes the amplitude and phasecoeffiffifficients, Ak and ?k, in the alternative form:f(x) =+?Xk=0Ak cos(2?kx ? ?k)[10 marks](b) What is special about the case k = 0? [2 marks](c) Explain how the coeffiffifficients, ck, of the Fourier series of the periodic function,f(x):f(x) = f(x + T), ?xcan be obtained from the Fourier transform, FL(?), of the related function,fL(x):fL(x) = f(x), ?T2 6 x < T20,otherwise[8 marks]2 Concurrent SystemsAn interprocess communication environment is based on synchronous messagepassing. A server is to be designed to support a moderate number of simultaneousclient requests.Clients send a request message to the server, continue in parallel with serveroperation, then wait for the server's reply message.Discuss the design of the server's interaction with the clients. Include any problemsyou foresee and discuss alternative solutions to them. [20 marks]2CST.2001.4.33 Further Java(a) Describe how mutual-exclusion locks provided by the synchronized keywordcan be used to control access to shared data structures. In particular youshould be clear about the behaviour of concurrent invocations of difffferentsynchronized methods on the same object, or of the same synchronized methodon difffferent objects. [6 marks](b) Consider the following class defifinition:class Example implements Runnable {public static Object o = new Object();int count = 0;public void run() {while (true) {synchronized (o) {count ++;}}}}Show how to start two threads, each executing this run method. [2 marks](c) When this program is executed, only one of the count fifields is found toincrement, even though threads are scheduled preemptively. Why might thisbe? [2 marks](d) Defifine a new class FairLock. Each instance should support two methods, lockand unlock, which acquire and release a mutual exclusion lock such that callsto unlock never block the caller, but will allow the longest-waiting blockedthread to acquire the lock. The lock should be recursive, meaning that thethread holding the lock may make multiple calls to lock without blocking.The lock is released only when a matched number of unlock operations havebeen made.You may wish to make use of the fact the Thread.currentThread() returnsthe instance of Thread that is currently executing. [10 marks]3[TURN OVERCST.2001.4.44 Compiler ConstructionConsider the following grammar giving the concrete syntax of a language:E ? idC ? E = E;C ? {B}C ? C repeatwhile EC ? if E then CC ? if E then C else CB ? B CB ? CS ? C eofwhere C repeatwhile E has the same meaning as do C while E in C or Java.(a) List the terminals and non-terminals of this grammar and explain thesignifificance of S. [3 marks](b) Identify any ambiguities in the above grammar and rewrite it to remove them,ensuring that your new grammar generates exactly the same set of strings.[4 marks](c) Specify a suitable abstract syntax, for example by giving a type declarationin a programming language of your choice, which might be used to hold parsetrees for this language. [3 marks](d) Give either a recursive descent parser or a characteristic fifinite state machine(e.g. for SLR(1)) with associated parser for your grammar. Your parser neednot return a parse tree—it suffiffiffices for your parser either to accept or to rejectthe input string. [10 marks]4CST.2001.4.55 Data Structures and Algorithms(a) Outline how you would determine whether the next line segment turns left orright during the Graham scan phase of the standard method of computing theconvex hull of a set of points in a plane. [5 marks](b) Describe in detail an effiffifficient algorithm to determine how often the substringABRACADABRA occurs in a vector of 106 characters. Your algorithm should beas effiffifficient as possible. [10 marks](c) Roughly estimate how many character comparisons would be made when youralgorithm for part (b) is applied to a vector containing 106 characters uniformlydistributed from the 26 letters A to Z. [5 marks]6 ECAD(a) When designing clocked circuits there are times when asynchronous inputshave to be sampled which may result in metastable behaviour in state holdingelements. How might metastability be avoided when sampling asynchronousinputs? [5 marks](b) An optical shaft encoder (e.g. used on the internal rollers of a mechanicalmouse) consists of a disk with an evenly spaced alternating transparent andopaque grating around the circumference. Two optical sensors are positionedsuch that when one sensor is at the middle of an opaque region, the otheris at the edge. Consequently, the following Gray code sequence is produced,depending upon the direction of rotation:positive rotationnegative rotation A shaft decoder module is required to convert the Gray code into an 8-bitposition. The 8-bit position should be incremented every time the inputchanges from one state to another in a positive direction (e.g. from 00 to01, or from 10 to 00). Similarly, the 8-bit position should be decrementedevery time the input changes from one state to another in a negative direction(e.g. from 00 to 10, or from 01 to 00).Write and comment a Verilog module which performs the function of a shaftdecoder. [15 marks]5[TURN OVERCST.2001.4.67 Operating System Functions(a) In the context of virtual memory management:(i) What is demand paging? How is it implemented? [4 marks](ii) What is meant by temporal locality of reference? [2 marks](iii) How does the assumption of temporal locality of reference inflfluence pagereplacement decisions? Illustrate your answer by brieflfly describing anappropriate page replacement algorithm or algorithms. [3 marks](iv) What is meant by spatial locality of reference? [2 marks](v) In what ways does the assumption of spatial locality of reference inflfluencethe design of the virtual memory system? [3 marks](b) A student suggests that the virtual memory system should really deal with"objects" or "procedures" rather than with pages. Make arguments both forand against this suggestion. [4 and 2 marks respectively].6CST.2001.4.78 Computation Theory(a) Defifine precisely what is meant by the following:(i) f(x1, x2, . . . xn) is a Primitive Recursive (PR) function of arity n.[5 marks](ii) f(x1, x2, . . . xn) is a Total Recursive (TR) function of arity n. [3 marks](b) Ackermann's function is defifined by the following recursive scheme:f(0, y) = S(y) = y + 1f(x + 1, 0) = f(x, 1)f(x + 1, y + 1) = f(x, f(x + 1, y))For fifixed n defifinegn(y) = f(n, y).Show that for all n, y ? N,gn+1(y) = gn(y+1)(1),where h(k)(z) is the result of k repeated applications of the function h to initialargument z. [4 marks](c) Hence or otherwise show that for all n ? N, gn(y) is a PR function. [4 marks](d) Deduce that Ackermann's function f(x, y) is a TR function. [3 marks](e) Is Ackermann's function PR? [1 mark]7[TURN OVERCST.2001.4.89 Numerical Analysis I(a) What is meant by a symmetric positive defifinite matrix ? [3 marks](b) Verify that A = 2 11 2 is positive defifinite. [4 marks](c) The Choleski factorisation A = LDLT is to be applied to the solution ofAx = b, where b = 11 . It is found thatL = 1121 , D = 232 .The next step in the method is to solve Ly = b to get y = 112. Form theupper triangular system of equations needed to complete the solution.[4 marks](d) Solve these equations. [2 marks](e) What is meant by the order of convergence of an iterative process? [1 mark](f ) State the Newton-Raphson formula for solving f(x) = 0 for scalar x. What isthe order of convergence of this method? [2 marks](g) This method is used to solve f(x) = x2 ? 4 = 0 using IEEE Double Precisionwith a certain starting value x0. It is found that the third iterate x3 ' 2.0006,and x4 ' 2.00000009. Very roughly, how many signifificant decimal digits ofaccuracy would you expect in x5? Explain your answer. [4 marks]8CST.2001.4.910 Computer Graphics and Image Processing(a) Describe an algorithm to draw a straight line using only integer arithmetic.You may assume that the line is in the fifirst octant, that the line starts andends at integer co-ordinates, and that the function setpixel(x, y) turns on thepixel at location (x, y). [8 marks](b) Describe Douglas and P¨ucker's algorithm for removing superflfluous points froma line chain. [10 marks](c) Under what circumstances would it be sensible to employ Douglas and P¨ucker'salgorithm? [2 marks](a) State what is meant by a directed graph and a strongly connected component.Illustrate your description by giving an example of such a graph with 8 verticesand 12 edges that has three strongly connected components. [5 marks](b) Describe, in detail, an algorithm to perform a depth-fifirst search over such agraph. Your algorithm should attach the discovery and fifinishing times to eachvertex and leave a representation of the depth-fifirst spanning tree embeddedwithin the graph. [5 marks](c) Describe an O(n) algorithm to discover all the strongly connected componentsof a given directed graph and explain why it is correct. You may fifind it usefulto use the concept of the forefather ?(v) of a vertex v which is the vertex, u,with highest fifinishing time for which there exists a (possibly zero length) pathfrom v to u. [10 marks]2 Computer Design(a) What is a data cache and what properties of data access does it exploit?[5 marks](b) What is a direct mapped cache and under what conditions will it exhibit poorperformance? [5 marks](c) Under what circumstances might a word of data in main memory besimultaneously held in two separate fifirst-level cache lines? [5 marks](d) A translation look aside buffffer is a specialised cache. What does it typicallystore and why is it often a factor of 1000 smaller than a data cache? [5 marks]2CST.2001.6.33 Digital Communication I(a) Defifine the terms circuit and packet in the context of communication systems.[5 marks](b) What sort of guarantee does circuit switching provide? [5 marks](c) What advantages does packet switching provide over circuit switching?[5 marks](d) Which of frequency division multiplexing, time division multiplexing and codedivision multiplexing lend themselves to circuit switching? Which to packetswitching? Explain why or why not in each case. [5 marks]4 Computer Graphics and Image Processing(a) Describe the z-buffffer polygon scan conversion algorithm. [10 marks](b) In ray tracing, once we have determined where a ray strikes an object, theillumination at the intersection point can be calculated using the formula:I = Iaka +XiIikd(Li · N) +XiIiks(Ri · V)nExplain what real effffect each of the three terms is trying to model and explainwhat each of the following symbols means, within the context of this formula:I, Ia, i, Ii , ka, kd, ks,Li, N, Ri, V, n[10 marks]3[TURN OVERCST.2001.6.4SECTION B5 Comparative Programming Languages(a) Brieflfly explain the concept of coroutines as used in BCPL and outlinethe effffect of the library functions createco(f, size), deleteco(ctpr),callco(cptr, val) and cowait(val). [10 marks](b) Outline how you would design a coroutine to merge, in increasing order, twoinfifinite streams of increasing integers supplied by two other coroutines.[5 marks](c) Brieflfly outline how you would implement an analogous merging mechanism inan object-oriented language, such as Java, that does not provide a coroutinemechanism. [5 marks]6 Compiler Construction(a) Describe one possible structure (e.g. ELF) of an object fifile. Illustrate youranswer by considering the form of object fifile which might result from thefollowing C program.int a = 1, b = -1;extern int g(int);extern int c;int f() { return g(a-b) + c; }It is not necessary to consider the exact instruction sequence, just issuesconcerning its interaction with the object fifile format. [10 marks](b) Describe how a linker takes a sequence of such programs and produces anexecutable fifile. [4 marks](c) Compare and contrast static and dynamic linking in a system using your objectfifile format. [6 marks]4CST.2001.6.57 Prolog for Artifificial IntelligenceA weighted binary tree can be defifined using compound terms in the following way.A node of the tree is represented by the term n(V, L, R), where V stands for thevalue of the node, and L and R stand for the left and right branches, respectively.A terminal node has the R and L components instantiated to the null list.Given an input tree T, write a Prolog program that constructs a tree of the sameshape as T, but in which the value of each node has been set to the value of themaximum value node in T.[Note: Maximum marks are available only for programs that perform this task inone recursive descent of the input tree, and which use no more than four clauses.][20 marks]5[TURN OVERCST.2001.6.68 DatabasesThe environmental agency is setting up an SQL database to monitor long-termtrends in the climate. Data are collected from observatories of a number of difffferentkinds.Flood risk is of particular concern. Each water authority measures river levels andrates of flflow hourly at major points, and records reservoir levels daily.In addition, the agency maintains weather stations both inland and at sea. Theserecord precipitation (rainfall etc.), temperature, sunshine, air pressure and wind.Values of new precipitation, temperature, pressure, and wind speed and directionare taken hourly; gusts of over 60 m.p.h. are noted whenever they occur.Maximum and minimum temperature and pressure, the total number of hours ofsunshine and the total precipitation are recorded daily. Inland stations can begrouped by water authority.By default these primary data will be relegated to archive after 2 years. Selectedinformation is retained permanently in a data warehouse. This serves two purposes.First, it holds monthly summary data consisting of the maximum (and minimumas appropriate) day value for each statistic, together with the monthly totals ofsunshine and precipitation. The warehouse also keeps detailed information relatingto periods of extreme weather from the relevant observatories, with one or morekeywords describing the nature of the incident (flflood, blizzard, hurricane etc.) andan optional comment.Write notes to assist in the design of the schema for the relational data warehouse,including any diagrams that you fifind helpful. Explain how your design will enablemeteorologists to fifind relevant past records, noting any assumptions that you makeabout the nature of the data.[You should not go into unnecessary detail about the structure of the primarydatabase. You may assume that expert meteorologists will select the data for thewarehouse.][20 marks]6CST.2001.6.7SECTION C9 Semantics of Programming LanguagesWrite short notes on four of the following fifive topics.(a) The relationship between three forms of operational semantics of the Languageof Commands (LC) given by• an evaluation relation h P, si ? hV, s0 i• a transition relation h P, si ? hP0 , s0 i• a transition relation between the confifigurationsh c, r, si of theSMC-machine(b) The notion of semantic equivalence of LC phrases and its congruence property.(c) Call-by-name and call-by-value rules for evaluating function applications in theLanguage of Functions and Procedures (LFP) and the relationship between theevaluation relations for LFP based upon each of them.(d) The notion of bisimilarity of two confifigurations in a labelled transition system.(e) The rules defifining the possible labelled transitions of parallel composition(P1|P2) and restriction (? c . P) in the Language of Communicating Processes(LCP).[5 marks each]7[TURN OVERCST.2001.6.810 Foundations of Functional ProgrammingThe following are some concepts that have flflourished in the context of functionalprogramming but which have (so far) been less heavily used in main-streamlanguages even when they have been available:(a) polymorphic types(b) type reconstruction(c) higher-order functions(d) lazy evaluation(e) continuationsFor each case give a brief explanation of the facility referred to, suggest acircumstance in which it might be useful and comment on how immediately relevantto non-functional languages it seems.[4 marks per part]8CST.2001.6.911 Logic and Proof(a) In the context of clause-based proof methods, defifine the notion of pure literaland describe what should be done if the set of clauses contains pure literals.[3 marks](b) Use the Davis-Putnam method to discover whether the following set of clausesis satisfifiable. If they are satisfifiable, show a satisfying interpretation.{P, R} {¬P, ¬R} {P, ¬Q} {¬Q, R} {¬P, Q, R}[6 marks](c) The three-fifingered inhabitants of the planet Triterra build base-3 computers.A Triterran named Randal Tryant has found a way of verifying base-3combinational logic. His Ordered Ternary Decision Diagrams (OTDDs) arethe same as a technology used on planet Earth except that all variables andexpressions range over the values 0, 1 and 2 instead of just 0 and 1.(i) Describe how a full ternary decision tree can be reduced to an OTDDwithout regard for effiffifficiency. [2 marks](ii) Sketch an effiffifficient algorithm to convert a ternary expression directly to anOTDD without constructing the full decision tree. For a typical ternaryconnective use modulo-3 multiplication, written as ?. [6 marks](iii) Demonstrate your algorithm by applying it to the ternary expression((i ? i) ? j) ? 2. [3 marks]9[TURN OVERCST.2001.6.1012 Complexity Theory(a) Show that any language that can be accepted by a nondeterministic machinein time f(n) can also be decided by a deterministic machine in space O(f(n)).[4 marks](b) Show that any language that can be accepted by a nondeterministic machinein space f(n) can also be decided by a deterministic machine in timeO(c(f(n)+log n) ), for some constant c. [6 marks](c) Explain what the above results tell us about the inclusion relationships amongthe complexity classes:NL, co-NL, P, NP, PSPACE and NPSPACE[4 marks](d) It has been proved that the graph reachability problem is in co-NL. Whatfurther inclusions can you derive among the above complexity classes usingthis fact? Explain your answer. [6 marks]Describe an O(n log(n)) algorithm based on a variation of merge sort to fifind theclosest pair of a given set of points lying in a plane. You may assume that the setof points is given as a linked list of (x, y) coordinates. [8 marks]Carefully prove that your algorithm can never take longer than O(n log(n)).[6 marks]Modify, with explanation, your algorithm to fifind the pair of points with minimumManhattan distance. The Manhattan distance between points (x1, y1) and (x2, y2)is |x1 ? x2| + |y1 ? y2|. [6 marks]1[TURN OVERCST.2000.6.22 Computer DesignWhy are the following statements fallacies?(a) MIPS is an accurate measure for comparing performance among computers.[5 marks](b) A benchmark is a typical program which accurately predicts the performanceof all other applications. [5 marks](c) Complex instruction set computers minimise the semantic gap betweenmachine code and high-level languages, thereby making applications run morequickly. [5 marks](d) Data caches always improve processor throughput. [5 marks]3 Digital Communication ICompare circuit switching and packet switching, paying attention to channelcharacteristics and resource effiffifficiency. [7 marks]What is wave division multiplexing (WDM)? Is it more like circuit switching orpacket switching and why? [7 marks]Wave length conversion is the process, either optical or optical-electronic-optical,of receiving a signal on one wavelength and transmitting on another.How does wave length conversion ease the problem of routing optical carriers in anetwork? [3 marks]"The huge capacity of WDM systems will mean that IP becomes redundant."Discuss. [3 marks]2CST.2000.6.34 Computer Graphics and Image ProcessingGive an algorithm for drawing the part of a circle which lies in the fifirst octant.Assume that the circle has integer radius and is centered at the origin. Assumethat you have a function setpixel(x, y) which turns on pixel (x, y). [10 marks]Derive a matrix, or a product of matrices, to perform a clockwise 2D rotation ofarbitrary angle, ?, about an arbitrary point, (xc, yc). [4 marks]Provide an algorithm to ascertain whether the Bezier curve defifined by P1P2P3P4lies within some tolerance, , of the straight line segment, P1P4, which joins theBezier curve's end points. Your algorithm must return false if the Bezier curve isoutside the tolerance; it must return true if the curve is well inside the tolerance;it may return either true or false if the curve is inside, but not well inside, thetolerance. [6 marks]SECTION B5 Comparative Programming LanguagesGive a brief summary of the main syntactic constructs found in the programminglanguage Smalltalk. Other languages often have the conditional constructsif-then-else and while. Show how these two constructs can be defifined in Smalltalk.[8 marks]Illustrate the use of Smalltalk by showing how you would defifine a method

what is the answer

Question Answered step-by-step what is the answer what is the answer Image transcription textQuestion 9 See full question Report this Question |2m 10s A client weighing 132 lb is brought to the emergencydepartment in status epilepticus. The physician asks the nurse to prepare diazepam 0.25 mg/kg. How manymilligrams will be given to this client?… Show more Health Science Science Nursing Share QuestionEmailCopy link Comments (0)

1. Apply the EFQM Business Excellence model, using relevant theory…

Question Answered step-by-step 1. Apply the EFQM Business Excellence model, using relevant theory… 1. Apply the EFQM Business Excellence model, using relevant theory and concepts learnt on the module, to one organisation of your choice in the food industry. Draw on your analysis to identify and capture strengths and areas for improvement to the chosen organisation:  Criterion 3: Engaging Stakeholders Discuss how the sustainable relationships with partners & suppliers (3.5) build within the company.  Criterion 4 – Creating Sustainable Value Critically evaluate the key processes required to deliver the value (4.3).  Criterion 5 – Driving Performance & Transformation Analyse how the company develops new product and evaluate whether the company utilises technology (5.3)?  2. Based on your analysis, recommend one Operations OR Supply Chain Management strategy that the chosen organisation could pursue to drive business excellence. Apply RADAR framework to your recommendation. Business Management Human Resource Management HRM MKT11445 Share QuestionEmailCopy link Comments (0)

I need help putting a progress report into an outline Genetically…

Question Answered step-by-step I need help putting a progress report into an outline Genetically… I need help putting a progress report into an outline  Genetically Modified OrganismsHistory of Genetically Modified OrganismsAccording to the World Health Organization, genetically modified organisms refer to plants, animals, and microorganisms with genetic material (DNA) that has been changed unconventionally through mating and natural recombination. The origins of GMOs have been linked to drama, controversies, and debates that focus on the efficacy of the foods. As such, the early days of GMOs are marked by tomato production as the first crop to be genetically engineered. The early 1900s marked the beginning and wide-scale discovery of DNA. After the discovery in the 1900s, coupled with another advancement in genetic production methods, across the 1970s, the technology permitted the full-scale alteration of DNA and overall genes in the component food. Indeed, in 1983, the first plant was produced through the mechanism of antibiotic resistance plant tobacco (Öz et al., 2019). Within the country of the US, in 1988, the FDA confirmed and approved the production of GMOs. Flavr, a type of tomato, was provided with a chance to be released into the market in 1994. On the other hand, the Chinese government approved and commercialized transgenic crops by 1993 through the promotion of virus-resistant tobacco (Rickard et al., 2020). Other crops such as Bacillus thurunginies (Bt) were approved in 1995. Comparison to other CulturesThe topic of GMOs is relevant to the evolution of species and diverse cultures. According to Fernbach et al., 2019 other cultures relate to the topic. Scientists have a consensus that the safety of GMOs is tenable for human consumption. GMOs can provide users with essential benefits. Nevertheless, people have mixed opinions concerning the use of GMOs. Fernbach points out that people who oppose the use of GMOs are doing so due to a lack of sufficient knowledge and thereby focus on ideologies not founded on truth or a personal assessment of the efficacy of GMOs (Fernbach et al., 2019). The value and importance of GMO foods have risen over the last few decades due to the impact of population increases that have skyrocketed the world, creating more demand for food; as such, GMOs help in mitigating the gap created by the lack of sufficient natural food for all the population of persons present. Relevant policies to GMOs. In addition, some policies guide the production, dissemination, and distribution of GMOs Agriculture is held as a critical human activity that affects the environment, both loss of biodiversity and curtailment of provision of ecological services. In Europe, there are policies designed to monitor the GMOs in the different fields of application. The main objective of such policies is to protect biodiversity, plant protection, and plant health. Moreover, the European Food Safety Authority provided a guidance document that revealed the environmental impacts of GMOs based on several criteria. The authority has focused on issuing calls for open consideration of the receiving environments in that GMO crops are released. The authorities seek the capacity of local resources and expertise under the regulatory system for GMOs (Arpaia, 2021).Furthermore, policies are designed to promote the sustainability of agricultural practices informed by the differences in farming practices across different territories. According to Arpala (2021), the authorities have categorized the production of new crop varieties of GMOs as crucial stressors in the physical environment (Arpaia, 2021). Moreover, legislation on GMOs has been achieved through the promotion of safety. The safety authorities in Europe and beyond carry out external risk assessments to assess the quality of products. Also, some clauses point to the use of new traits placed are introduced to the plants and follow-up patterns chosen for modified plants.Future trends of GMOsThe onset of biotechnology changed the course of agriculture production. The future trends of GMOs will be affected regardless of whether users embrace GMOs or not. Today, technological companies support the proliferation of GMOs through the sales of seeds. Moreover, GMO expansion is pegged on the modification for the first generation. Similarly, biotechnology companies are creating crops with a “stacked fruit” component that overseas transformation of the yield on the farm. GMOs will also allow farmers to use a crop line framework that expresses, for instance, several different variations within the gene that encodes the protein that attacks insects usually feeding on the GMO plant (Ryan et al., 2019). As a result, it is predicted to delay creating genetic resistance by insects.In addition, other traits are being introduced as the “second” generation of GMOs. Improvements and several modifications will be made to crops to boost the quality of the harvested portion of the crops. Additionally, Crop plants shall be used as ‘biofactories’ to generate vital pharmaceuticals. Equally, considering this and other innovative applications of genetic engineering to plants shall be regarded as strongly by the third generation of GMO technology development.    ReferencesArpaia, S. (2021). Environmental risk assessment in agroecosystems: Revisiting the concept of receiving environment after the EFSA guidance document. Ecotoxicology and Environmental Safety, 208, 111676.Fernbach, P. M., Light, N., Scott, S. E., Inbar, Y., & Rozin, P. (2019). Extreme opponents of genetically modified foods know the least but think they know the most. Nature Human Behaviour, 3(3), 251-256.Öz, B., Unsal, F., & Movassaghi, H. (2018). Consumer attitudes toward genetically modified food in the United States: Are Millennials different? Journal of Transnational Management, 23(1), 3-21.Rickard, L. N., Britwum, K., Noblet, C. L., & Evans, K. S. (2020). Is it factory-made or farm-fresh? Measuring US support for aquaculture as food technology. Marine Policy, 115, 103858.Ryan, C. D., Schaul, A., Butner, R., & Swarthout, J. (2019). Monetizing Disinformation in the Attention Economy: the case of genetically modified organisms (GMOs) European Management Journal Special Issue “The Dark Side of Social Media.” Science Health Science BEHS 103 Share QuestionEmailCopy link Comments (0)

A 28-year-old woman presents to the clinic with symptoms of a…

Question Answered step-by-step A 28-year-old woman presents to the clinic with symptoms of a… A 28-year-old woman presents to the clinic with symptoms of a urinary tract infection (UTI) for the fourth time in 5 months. The woman describes urinary frequency and dysuria. The woman denies blood in the urine or a foul smell to the urine. A clean catch urine specimen demonstrates cloudiness, alkaline pH, increased nitrites, and leukocyte esterase. Some mucus is present, as well as bacterial overgrowth. The woman indicates that she uses proper hygiene measures by wiping from front to back, has completed the full course of antibiotics previously prescribed, wears cotton underwear, avoids tub baths, and drinks increased fluids each day to encourage voiding. Upon further discussion, the woman reveals the use of a diaphragm and spermicide for birth control. The previous urine culture from the last UTI demonstrated gram-positive cocci, which were not present in the most recent UTI culture. The woman is not currently pregnant.What risk factor(s) for UTI does the woman demonstrate?What are the differential diagnoses for this patient?What additional medication management should be considered? Provide full prescription details.What patient education should be considered?What follow-up education is important for this patient?Would this be considered a complicated or uncomplicated UTI. What are the differences in treatment for each? How does the management change based on this knowledge? Health Science Science Nursing Share QuestionEmailCopy link Comments (0)

Use the author guidelines of ANMJ and craft a journal article about…

Question Answered step-by-step Use the author guidelines of ANMJ and craft a journal article about… Use the author guidelines of ANMJ and craft a journal article about how you become a culturally safe nurse. Tell the story of what you as a nursing student have learnt about Aboriginal health and how you as a future nurse will incorporate this into your practice.  Health Science Science Nursing NURS 1008 Share QuestionEmailCopy link Comments (0)