482 research outputs found

    On generalized Frame-Stewart numbers

    Get PDF
    For the multi-peg Tower of Hanoi problem with k4k \geqslant 4 pegs, so far the best solution is obtained by the Stewart's algorithm based on the the following recurrence relation: S_k(n)=min_1tn{2S_k(nt)+S_k1(t)}\mathrm{S}\_k(n)=\min\_{1 \leqslant t \leqslant n} \left\{2 \cdot \mathrm{S}\_k(n-t) + \mathrm{S}\_{k-1}(t)\right\}, S_3(n)=2n1\mathrm{S}\_3(n) = 2^n -- 1. In this paper, we generalize this recurrence relation to G_k(n)=min_1tn{p_kG_k(nt)+q_kG_k1(t)}\mathrm{G}\_k(n) = \min\_{1\leqslant t\leqslant n}\left\{ p\_k\cdot \mathrm{G}\_k(n-t) + q\_k\cdot \mathrm{G}\_{k-1}(t) \right\}, G_3(n)=p_3G_3(n1)+q_3\mathrm{G}\_3(n) = p\_3\cdot \mathrm{G}\_3(n-1) + q\_3, for two sequences of arbitrary positive integers (p_i)_i3\left(p\_i\right)\_{i \geqslant 3} and (q_i)_i3\left(q\_i\right)\_{i \geqslant 3} and we show that the sequence of differences (G_k(n)G_k(n1))_n1\left(\mathrm{G}\_k(n)- \mathrm{G}\_k(n-1)\right)\_{n \geqslant 1} consists of numbers of the form (_i=3kq_i)(_i=3kp_iα_i)\left(\prod\_{i=3}^{k}q\_i\right) \cdot \left(\prod\_{i=3}^{k}{p\_i}^{\alpha\_i}\right), with α_i0\alpha\_i\geqslant 0 for all ii, arranged in nondecreasing order. We also apply this result to analyze recurrence relations for the Tower of Hanoi problems on several graphs.Comment: 13 pages ; 3 figure

    A proof of P!=NP

    Full text link
    We show that it is provable in PA that there is an arithmetically definable sequence {ϕn:nω}\{\phi_{n}:n \in \omega\} of Π20\Pi^{0}_{2}-sentences, such that - PRA+{ϕn:nω}\{\phi_{n}:n \in \omega\} is Π20\Pi^{0}_{2}-sound and Π10\Pi^{0}_{1}-complete - the length of ϕn\phi_{n} is bounded above by a polynomial function of nn with positive leading coefficient - PRA+ϕn+1\phi_{n+1} always proves 1-consistency of PRA+ϕn\phi_{n}. One has that the growth in logical strength is in some sense "as fast as possible", manifested in the fact that the total general recursive functions whose totality is asserted by the true Π20\Pi^{0}_{2}-sentences in the sequence are cofinal growth-rate-wise in the set of all total general recursive functions. We then develop an argument which makes use of a sequence of sentences constructed by an application of the diagonal lemma, which are generalisations in a broad sense of Hugh Woodin's "Tower of Hanoi" construction as outlined in his essay "Tower of Hanoi" in Chapter 18 of the anthology "Truth in Mathematics". The argument establishes the result that it is provable in PA that PNPP \neq NP. We indicate how to pull the argument all the way down into EFA

    Diameters, distortion and eigenvalues

    Full text link
    We study the relation between the diameter, the first positive eigenvalue of the discrete pp-Laplacian and the p\ell_p-distortion of a finite graph. We prove an inequality relating these three quantities and apply it to families of Cayley and Schreier graphs. We also show that the p\ell_p-distortion of Pascal graphs, approximating the Sierpinski gasket, is bounded, which allows to obtain estimates for the convergence to zero of the spectral gap as an application of the main result.Comment: Final version, to appear in the European Journal of Combinatoric

    Fatal Attractors in Parity Games: Building Blocks for Partial Solvers

    Full text link
    Attractors in parity games are a technical device for solving "alternating" reachability of given node sets. A well known solver of parity games - Zielonka's algorithm - uses such attractor computations recursively. We here propose new forms of attractors that are monotone in that they are aware of specific static patterns of colors encountered in reaching a given node set in alternating fashion. Then we demonstrate how these new forms of attractors can be embedded within greatest fixed-point computations to design solvers of parity games that run in polynomial time but are partial in that they may not decide the winning status of all nodes in the input game. Experimental results show that our partial solvers completely solve benchmarks that were constructed to challenge existing full solvers. Our partial solvers also have encouraging run times in practice. For one partial solver we prove that its run-time is at most cubic in the number of nodes in the parity game, that its output game is independent of the order in which monotone attractors are computed, and that it solves all Buechi games and weak games. We then define and study a transformation that converts partial solvers into more precise partial solvers, and we prove that this transformation is sound under very reasonable conditions on the input partial solvers. Noting that one of our partial solvers meets these conditions, we apply its transformation on 1.6 million randomly generated games and so experimentally validate that the transformation can be very effective in increasing the precision of partial solvers

    Loopless Gray Code Enumeration and the Tower of Bucharest

    Get PDF
    We give new algorithms for generating all n-tuples over an alphabet of m letters, changing only one letter at a time (Gray codes). These algorithms are based on the connection with variations of the Towers of Hanoi game. Our algorithms are loopless, in the sense that the next change can be determined in a constant number of steps, and they can be implemented in hardware. We also give another family of loopless algorithms that is based on the idea of working ahead and saving the work in a buffer
    corecore