578 research outputs found

    Random Access to Grammar Compressed Strings

    Full text link
    Grammar based compression, where one replaces a long string by a small context-free grammar that generates the string, is a simple and powerful paradigm that captures many popular compression schemes. In this paper, we present a novel grammar representation that allows efficient random access to any character or substring without decompressing the string. Let SS be a string of length NN compressed into a context-free grammar S\mathcal{S} of size nn. We present two representations of S\mathcal{S} achieving O(log⁥N)O(\log N) random access time, and either O(n⋅αk(n))O(n\cdot \alpha_k(n)) construction time and space on the pointer machine model, or O(n)O(n) construction time and space on the RAM. Here, αk(n)\alpha_k(n) is the inverse of the kthk^{th} row of Ackermann's function. Our representations also efficiently support decompression of any substring in SS: we can decompress any substring of length mm in the same complexity as a single random access query and additional O(m)O(m) time. Combining these results with fast algorithms for uncompressed approximate string matching leads to several efficient algorithms for approximate string matching on grammar-compressed strings without decompression. For instance, we can find all approximate occurrences of a pattern PP with at most kk errors in time O(n(min⁥{∣P∣k,k4+∣P∣}+log⁥N)+occ)O(n(\min\{|P|k, k^4 + |P|\} + \log N) + occ), where occocc is the number of occurrences of PP in SS. Finally, we generalize our results to navigation and other operations on grammar-compressed ordered trees. All of the above bounds significantly improve the currently best known results. To achieve these bounds, we introduce several new techniques and data structures of independent interest, including a predecessor data structure, two "biased" weighted ancestor data structures, and a compact representation of heavy paths in grammars.Comment: Preliminary version in SODA 201

    Cross-Document Pattern Matching

    Get PDF
    We study a new variant of the string matching problem called cross-document string matching, which is the problem of indexing a collection of documents to support an efficient search for a pattern in a selected document, where the pattern itself is a substring of another document. Several variants of this problem are considered, and efficient linear-space solutions are proposed with query time bounds that either do not depend at all on the pattern size or depend on it in a very limited way (doubly logarithmic). As a side result, we propose an improved solution to the weighted level ancestor problem

    X-ray emission from the remarkable A-type star HR 8799

    Full text link
    We present a Chandra observation of the exceptional planet bearing A5V star HR 8799, more precisely classified as a kA5hF0mA5 star and search for intrinsic X-ray emission. We clearly detect HR 8799 at soft X-ray energies with the ACIS-S detector in a 10 ks exposure; minor X-ray brightness variability is present during the observation. The coronal plasma is described well by a model with a temperature of around 3 MK and an X-ray luminosity of about Lx = 1.3 x 10^28 erg/s in the 0.2-2.0 keV band, corresponding to an activity level of log Lx/Lbol ~ -6.2. Altogether, these findings point to a rather weakly active and given a RASS detection, long-term stable X-ray emitting star. The X-ray emission from HR 8799 resembles those of a late A/early F-type stars, in agreement with its classification from hydrogen lines and effective temperature determination and thus resolving the apparent discrepancy with the standard picture of magnetic activity that predicts mid A-type stars to be virtually X-ray dark.Comment: 4 pages, 3 figures, accepted by A&

    Efficient Seeds Computation Revisited

    Get PDF
    The notion of the cover is a generalization of a period of a string, and there are linear time algorithms for finding the shortest cover. The seed is a more complicated generalization of periodicity, it is a cover of a superstring of a given string, and the shortest seed problem is of much higher algorithmic difficulty. The problem is not well understood, no linear time algorithm is known. In the paper we give linear time algorithms for some of its versions --- computing shortest left-seed array, longest left-seed array and checking for seeds of a given length. The algorithm for the last problem is used to compute the seed array of a string (i.e., the shortest seeds for all the prefixes of the string) in O(n2)O(n^2) time. We describe also a simpler alternative algorithm computing efficiently the shortest seeds. As a by-product we obtain an O(nlog⁥(n/m))O(n\log{(n/m)}) time algorithm checking if the shortest seed has length at least mm and finding the corresponding seed. We also correct some important details missing in the previously known shortest-seed algorithm (Iliopoulos et al., 1996).Comment: 14 pages, accepted to CPM 201

    Searching for Radio Pulsars in 3EG Sources at Urumqi Observatory

    Full text link
    Since mid-2005, a pulsar searching system has been operating at 18 cm on the 25-m radio telescope of Urumqi Observatory. Test observations on known pulsars show that the system can perform the intended task. The prospect of using this system to observe 3EG sources and other target searching tasks is discussed.Comment: a training project about MSc thesi

    Five-Year Optical and Near Infrared Observations of the Extremely Slow Nova V1280 Scorpii

    Full text link
    We present optical (BB, VV, RcR_{\rm c}, IcI_{\rm c} and yy) and near infrared (JJ, HH and KsK_{\rm s}) photometric and spectroscopic observations of a classical nova V1280 Scorpii for five years from 2007 to 2011. Our photometric observations show a declining event in optical bands shortly after the maximum light which continues ∌\sim 250 days. The event is most probably caused by a dust formation. The event is accompanied by a short (∌\sim 30 days) re-brightening episode (∌\sim 2.5 mag in VV), which suggests a re-ignition of the surface nuclear burning. After 2008, the yy band observations show a very long plateau at around yy = 10.5 for more than 1000 days until April 2011 (∌\sim 1500 days after the maximum light). The nova had taken a very long time (∌\sim 50 months) before entering the nebular phase (clear detection of both [\ion{O}{iii}] 4959 and 5007) and is still continuing to generate the wind caused by H-burning. The finding suggests that V1280 Sco is going through the historically slowest evolution. The interval from the maximum light (2007 February 16) to the beginning of the nebular phase is longer than any previously known slow novae: V723 Cas (18 months), RR Pic (10 months), or HR Del (8 months). It suggests that the mass of a white dwarf in the V1280 Sco system might be 0.6 M_\mathrm{\sun} or smaller. The distance, based on our measurements of the expansion velocity combined with the directly measured size of the dust shell, is estimated to be 1.1 ±\pm 0.5 kpc.Comment: 17 pages, 14 figures, accepted for publication in A&

    Implementation of the Backlund transformations for the Ablowitz-Ladik hierarchy

    Full text link
    The derivation of the Backlund transformations (BTs) is a standard problem of the theory of the integrable systems. Here, I discuss the equations describing the BTs for the Ablowitz-Ladik hierarchy (ALH), which have been already obtained by several authors. The main aim of this work is to solve these equations. This can be done in the framework of the so-called functional representation of the ALH, when an infinite number of the evolutionary equations are replaced, using the Miwa's shifts, with a few equations linking tau-functions with different arguments. It is shown that starting from these equations it is possible to obtain explicit solutions of the BT equations. In other words, the main result of this work is a presentation of the discrete BTs as a superposition of an infinite number of evolutionary flows of the hierarchy. These results are used to derive the superposition formulae for the BTs as well as pure soliton solutions.Comment: 20 page

    Chemical Composition of Extremely Metal-Poor Stars in the Sextans Dwarf Spheroidal Galaxy

    Get PDF
    Chemical abundances of six extremely metal-poor ([Fe/H]<-2.5) stars in the Sextans dwarf spheroidal galaxy are determined based on high resolution spectroscopy (R=40,000) with the Subaru Telescope High Dispersion Spectrograph. (1) The Fe abundances derived from the high resolution spectra are in good agreement with the metallicity estimated from the Ca triplet lines in low resolution spectra. The lack of stars with [Fe/H]=<-3 in Sextans, found by previous estimates from the Ca triplet, is confirmed by our measurements, although we note that high resolution spectroscopy for a larger sample of stars will be necessary to estimate the true fraction of stars with such low metallicity. (2) While one object shows an overabundance of Mg (similar to Galactic halo stars), the Mg/Fe ratios of the remaining five stars are similar to the solar value. This is the first time that low Mg/Fe ratios at such low metallicities have been found in a dwarf spheroidal galaxy. No evidence for over-abundances of Ca and Ti are found in these five stars, though the measurements for these elements are less certain. Possible mechanisms to produce low Mg/Fe ratios, with respect to that of Galactic halo stars, are discussed. (3) Ba is under-abundant in four objects, while the remaining two stars exhibit large and moderate excesses of this element. The abundance distribution of Ba in this galaxy is similar to that in the Galactic halo, indicating that the enrichment of heavy elements, probably by the r-process, started at metallicities [Fe/H] < -2.5, as found in the Galactic halo.Comment: 15 pages, 6 figures, 6 tables, A&A, in pres
    • 

    corecore