Solutions to all nine questions of the University of Oxford computer science preliminary examination, Long Vacation 2019, held on 4 September 2019. The printed groups are Discrete Mathematics (1–3), Continuous Maths (4–6), and Probability (7–9). All options are treated.
Source: Public examination-paper archive, member
2018/L/a10100w1.pdf, nine scanned pages, paper A10100W1. The dated cover establishes 2019 despite the archive member’s directory name.A function is injective if, for all , implies . Thus distinct elements of the domain of a function have distinct images.
A function is surjective if every element of its codomain has a preimage: for every , there is some such that .
A function is bijective if it is both injective and surjective. Equivalently, each element of the codomain has exactly one preimage.
Not injective; surjective. Indeed, although . This polynomial is continuous, with as and as . For any prescribed real , choose with ; the intermediate value theorem supplies a preimage between and .
Both injective and surjective. The natural logarithm is strictly increasing on the positive real numbers, so it is injective. For every , satisfies ; hence the function is surjective, with the exponential function as its inverse function.
Not injective; its image of a function is exactly . For example, both and give the ceiling function value . Since , , so the value is never attained. For every positive integer ,Each such interval is nonempty and contained in , with the upper endpoint excluded when . Thus the answer concerning surjectivity depends on the convention for the natural numbers: onto if , and not onto if . The source does not settle that convention.
Not injective; surjective. The equal values disprove injectivity. For any , take . This lies in the stated domain of a function, andConsequently every member of the codomain has a preimage.
Suppose . Applying and using the right inverse identity givesThis is exactly injectivity, so every right inverse is injective.
For each , surjectivity makes the fiber of a function nonempty. Choose one element of each such fiber of a function and define . Then for every , proving . For arbitrary sets, the simultaneous selection invokes the usual axiom of choice; this is the right-inverse characterization of the axiom of choice. For finite only finitely many choices are needed. If is empty, the unique empty function gives the same conclusion.
Put . By distributivity, and . Consequently,Here we used associativity, distributivity, and idempotence of set intersection and set union. The equality holds for every , so : is an idempotent function.
There are choices for the first position, then choices for the second, and so on down to one choice. The multiplication principle therefore gives permutations. This also agrees with the empty permutation convention .
Let be the set of permutations fixing object . If a specified collection of objects is fixed, the remaining objects can be arranged in ways. There are such collections. Applying the inclusion-exclusion principle to exclude all fixed objects givesFor , the terms and cancel. Thus the number of derangements is , interpreting the remaining sum as empty when . The full inclusion-exclusion formula also gives .
The base case isAssume the displayed formula holds at some . Adding the next term yieldsThe last step uses . This is the required formula at , completing the proof by mathematical induction. The identity holds for all .
Use mathematical induction with two consecutive base cases: and . Suppose the bounds hold for exponents and . The Fibonacci recurrence givesThus the consecutive pair of bounds advances one step. for every .
Pad every number with leading zeros to obtain exactly decimal digits. Its digits are a solution of in nonnegative integers. Conversely every such solution is a valid digit string, since no individual digit can exceed ; its digit sum also excludes the number zero. The stars and bars count therefore givesFor , , so . Thus , with an explicit Big O notation constant and threshold .
False. Set . For ,Iteration gives a growing geometric sequence as a lower bound for . Hence and no eventual constant can bound , as Big O notation would require.
True. Rationalizing the square root gives, for ,The uniform bound is exactly the assertion in Big O notation.
True. The logarithm identity givesFor , , so . By monotonicity of the natural logarithm, the expression lies between and . It is therefore in Big O notation.
False. On every odd positive integer , . Given any proposed Big O notation constant and threshold , choose an odd . Then , contradicting the required bound. The behavior on even integers cannot repair this failure on an unbounded subsequence.
The prime numbers form the lower antichain; the nonprime elements form the upper antichain. In particular, is not a prime number. Each lower element is below each upper element, and no third element can lie strictly between them. Therefore the six cover relations are , represented by the following Hasse diagram. Upward movement represents increasing order; crossing lines do not add elements.
Write for the prime numbers in and for its nonprime elements. Since , both antichains have at least two elements: and . Every element of is below every element of . We can classify a subset by its intersection with these two levels of the two-level partial order.
- If , every element of is an upper bound. There is no maximum, because has no elements, and no least upper bound, because the distinct elements are incomparable minimal elements of .
- If with , its upper bounds are ; its maximum and least upper bound are both .
- If has at least two elements, its upper bounds are exactly . There is no maximum in and no least upper bound, because has at least two incomparable elements.
- If , its only upper bound is : no different element is above this nonprime element. Since every remaining element of is a prime number, belongs to and dominates all of it. Thus is both its maximum and its least upper bound.
- If contains at least two elements of , these distinct nonprime elements have no common upper bound, and has neither a maximum nor a least upper bound.
Consequently an upper bound exists exactly when ; a maximum or least upper bound exists exactly when or is a singleton subset of . The exhaustive cases also justify why the last two existence criteria coincide here.
One standard finite form of Taylor's theorem is the following. Suppose has continuous derivatives through order on an interval containing and . Then, if , there is some strictly between them such thatThe final term is the Lagrange remainder. At the identity holds directly with zero remainder. The finite expansion requires no assumption that an infinite Taylor series converges to .
For , apply Taylor's theorem to the sine about zero, retaining terms through degree four. Its fourth-order coefficient is zero, and its fifth derivative is the cosine function, givingThe cosine function is decreasing on , so . Multiplying by the nonnegative factor and adding proves both required bounds. At both are equalities.
Let , so . Its gradient is , andThus a stationary point must have and , giving and . To classify them, useAt either stationary point, and . Hence . The Hessian has one positive and one negative eigenvalue, so both are saddle points. There are no other stationary points.
Let . The objective has the exact sum of squares decompositionFor every feasible point, , so this is at least . Equality requires simultaneously and . Substitution gives and . Both resulting points are feasible. Therefore the global minimum is , attained exactly at and . The lower bound and its equality conditions prove global attainment of the minimum, rather than merely identifying stationary points on the boundary.
The secant method starts from two approximations . Replace the function near its zero of a function by the secant line through and ; the zero of that line is the next approximation:Stop immediately if ; otherwise the denominator must be nonzero. Each further step needs one new function evaluation and no derivative. There is no automatic bracketing or global convergence guarantee.[ref]
Use . Then , , and the secant method givesWriting , the next step isThus the requested approximation is to three significant figures. All intermediate logarithms should be retained at higher precision before this final rounding.
A small difference between successive secant method iterates alone does not certify a small absolute error. Instead use a residual root error bound. On ,and , so there is a unique root . For an iterate , the mean value theorem givesTherefore stop when and . This guarantees the desired absolute error in exact arithmetic; the evaluated residual of a root equation should include an allowance for its much smaller roundoff error. A safeguarded implementation can retain the bracket and use bisection if a proposed secant method step leaves it.
With the gap-at-one convention, machine epsilon is the difference between and the next larger representable floating-point number. The double-precision floating-point format has 53 significant binary digits, including the implicit leading digit, soA related convention uses unit roundoff, the worst relative rounding scale for round-to-nearest: . Stating the convention distinguishes these two common values.[ref]
IEEE arithmetic in Oracle's Numerical Computation Guide. Chapter 2, IEEE Arithmetic Model; Double Format and Table 2-5
Choose equation (1), evaluated by refined composite Simpson's rule. It gives directly as a one-dimensional definite integral with fixed endpoints and a smooth integrand. It therefore avoids root finding altogether. Before evaluating, use the trigonometric identityThis equivalent integrand is nonnegative throughout , avoiding cancellation between the original two terms. Equation (2) instead subtracts two potentially large exponential functions, while equation (3) would ordinarily put a numerical integration inside a root finding loop.
For even , let , , and computeThen double . The integrand has bounded derivatives of every fixed order on the integration interval; in the fourth-order error regime, the estimated remaining truncation error in is . The factor follows by eliminating the leading term between the two mesh widths.[ref]
Stop when this estimate is comparable to and further refinement shows stagnation at the roundoff error scale. Check that the differences previously decreased consistently with fourth-order convergence; differences alone are not a rigorous error certificate if cancellation or roundoff error dominates. Compensated summation helps keep the summation error near the precision limit. Refining indefinitely after this point increases work without reliably adding meaningful digits. This answers the requested choice and termination strategy without requiring an explicit value of .
For a differentiable scalar function of real variables, its derivative is the linear mapwhere the column gradient is . Its Hessian is the matrix . For a function, equality of mixed partial derivatives makes this matrix symmetric.
Put , and . The chain rule yieldsFor every nonzero vector , the Cauchy-Schwarz inequality givesThus the Hessian is a positive-definite matrix everywhere. The Hessian criterion for convexity implies that is strictly convex on . Its unique global minimum is at , where .
Let , so and . Multiplying the proposed inverse matrix by the Hessian givesHence , as required. Its existence also follows from the Hessian being a positive-definite matrix.
For iterates approaching , write . Exact order of convergence means for a finite constant , with nonzero errors. Thus quadratic convergence has , and cubic convergence has . The weaker eventual bound means at least order . Finite termination is a separate case.[ref]
The assertion about being always faster is false. For example, the fixed-point iterations with errors and have exact quadratic convergence and cubic convergence, respectively. Starting both at , their next errors are and : the cubic convergence method is worse on that step, although both converge. Error constants, starting points, and work per step all matter. The higher order of convergence describes asymptotic behavior within a convergence region, not a uniform comparison of all computations.
The update in Newton's method in optimization is . Substituting the previous formulas givesThus the distance from the unique minimum obeys , where . In particular,For , the error ratio is exactly , proving exact cubic convergence. If , the initial point already attains the minimum. All updates are defined because the Hessian is invertible everywhere. This is Newton minimization of the square-root norm; its special update also shows why the given initial condition matters: produces an alternating two-cycle, and diverges.
Call the normalization constant to distinguish it from the moment index used later. A probability density function must have total integral one, soTherefore , the value denoted in the density. This is the Pareto distribution with scale and shape .
For , the cumulative distribution function is zero. For , integrate the normalized probability density function:It is continuous at , increases to one, and is the cumulative distribution function of the stated Pareto distribution.
Write for a positive integer moment index. The moment isThis improper integral converges exactly when , namely . For those indices,At the divergence is logarithmic; for it is a power divergence. Thus, in the source's moment notation, the positive integers allowed are exactly . If , no positive integer moment is finite.
Let be the expected additional flips when there is no immediately preceding tail, and the expectation when the preceding flip is a tail. A one-step first-step analysis givesSolving gives and . To justify finiteness before manipulating these expectations, split the flips into independent two-flip blocks. Each block has probability of being ; hence . This geometric tail bound from a uniform escape probability makes the expectation finite. The state is essential because successive possible pairs overlap: the waiting time is not itself a geometric distribution with parameter .
Write . The initial possibilities are with probability , after which a fresh wait begins; with probability , after which a fresh wait begins; or with probability , which ends the experiment. Accounting for the flips already made in each case gives the probability generating function equationTherefore for . In particular, and there is no mass below two flips, as required.
Set , so . Differentiate once and evaluate at , using , , :A second differentiation gives , henceThe derivatives of a probability generating function give and . Consequently . The earlier geometric tail bound from a uniform escape probability ensures the needed moments are finite.
Articles were limited to the first 100 out of 136 total.
Articles by others on the same topic
There are currently no matching articles.
