3,564 research outputs found

    On the Complexity and Performance of Parsing with Derivatives

    Full text link
    Current algorithms for context-free parsing inflict a trade-off between ease of understanding, ease of implementation, theoretical complexity, and practical performance. No algorithm achieves all of these properties simultaneously. Might et al. (2011) introduced parsing with derivatives, which handles arbitrary context-free grammars while being both easy to understand and simple to implement. Despite much initial enthusiasm and a multitude of independent implementations, its worst-case complexity has never been proven to be better than exponential. In fact, high-level arguments claiming it is fundamentally exponential have been advanced and even accepted as part of the folklore. Performance ended up being sluggish in practice, and this sluggishness was taken as informal evidence of exponentiality. In this paper, we reexamine the performance of parsing with derivatives. We have discovered that it is not exponential but, in fact, cubic. Moreover, simple (though perhaps not obvious) modifications to the implementation by Might et al. (2011) lead to an implementation that is not only easy to understand but also highly performant in practice.Comment: 13 pages; 12 figures; implementation at http://bitbucket.org/ucombinator/parsing-with-derivatives/ ; published in PLDI '16, Proceedings of the 37th ACM SIGPLAN Conference on Programming Language Design and Implementation, June 13 - 17, 2016, Santa Barbara, CA, US

    Pushdown Control-Flow Analysis for Free

    Full text link
    Traditional control-flow analysis (CFA) for higher-order languages, whether implemented by constraint-solving or abstract interpretation, introduces spurious connections between callers and callees. Two distinct invocations of a function will necessarily pollute one another's return-flow. Recently, three distinct approaches have been published which provide perfect call-stack precision in a computable manner: CFA2, PDCFA, and AAC. Unfortunately, CFA2 and PDCFA are difficult to implement and require significant engineering effort. Furthermore, all three are computationally expensive; for a monovariant analysis, CFA2 is in O(2n)O(2^n), PDCFA is in O(n6)O(n^6), and AAC is in O(n9logn)O(n^9 log n). In this paper, we describe a new technique that builds on these but is both straightforward to implement and computationally inexpensive. The crucial insight is an unusual state-dependent allocation strategy for the addresses of continuation. Our technique imposes only a constant-factor overhead on the underlying analysis and, with monovariance, costs only O(n3) in the worst case. This paper presents the intuitions behind this development, a proof of the precision of this analysis, and benchmarks demonstrating its efficacy.Comment: in Proceedings of the 43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, 201

    Boolean Chaos

    Full text link
    We observe deterministic chaos in a simple network of electronic logic gates that are not regulated by a clocking signal. The resulting power spectrum is ultra-wide-band, extending from dc to beyond 2 GHz. The observed behavior is reproduced qualitatively using an autonomously updating Boolean model with signal propagation times that depend on the recent history of the gates and filtering of pulses of short duration, whose presence is confirmed experimentally. Electronic Boolean chaos may find application as an ultra-wide-band source of radio wavesComment: 10 pages and 4 figur

    Weather-related Construction Delays in a Changing Climate: A Systematic State-of-the-art Review

    Get PDF
    Adverse weather delays forty-five percent of construction projects worldwide, costing project owners and contractors billions of dollars in additional expenses and lost revenue each year. Additionally, changes in climate are expected to increase the frequency and intensity of weather conditions that cause these construction delays. Researchers have investigated the effect of weather on several aspects of construction. Still, no previous study comprehensively (1) identifies and quantifies the risks weather imposes on construction projects, (2) categorizes modeling and simulation approaches developed, and (3) summarizes mitigation strategies and adaptation techniques to provide best management practices for the construction industry. This paper accomplishes these goals through a systematic state-of-the-art review of 3207 articles published between 1972 and October 2020. This review identified extreme temperatures, precipitation, and high winds as the most impactful weather conditions on construction. Despite the prevalence of climate-focused delay studies, existing research fails to account for future climate in the modeling and identification of delay mitigation strategies. Accordingly, planners and project managers can use this research to identify weather-vulnerable activities, account for changing climate in projects, and build administrative or organizational capacity to assist in mitigating weather delays in construction. The cumulative contribution of this review will enable sustainable construction scheduling that is robust to a changing climate

    Job-Related Burnout among Juvenile Probation Officers: Implications for Mental Health Stigma and Competency

    Get PDF
    The high demands and responsibilities of probation work, particularly with juvenile clients, may lead to burnout, which can negatively impact how probation officers work with clients, particularly individuals with behavioral health concerns. Yet, research examining burnout and related outcomes among juvenile probation officers (JPOs) is limited. We surveyed 246 JPOs in a Midwestern state to identify the prevalence, predictors, and potential outcomes of burnout. JPOs reported moderate levels of burnout; about 30% of the sample scored in the high range for emotional exhaustion and cynicism. Contrary to study hypotheses, there were no group-level differences in burnout scores across gender, race/ethnicity, age, or education. In regression models, burnout was predicted by being White (vs. minority), serving in an urban (vs. rural) county, dissatisfaction with department guidelines, job dissatisfaction, viewing job role as more treatment-oriented along the enforcement−treatment continuum, and turnover intention. JPOs with burnout were more likely to endorse mental health stigma and lack of mental health competency to address juvenile clients with behavioral health concerns. Findings suggest burnout prevention and intervention programs should be considered for JPOs to increase job satisfaction, limit job turnover, reduce burnout, and possibly increase effective practices for managing juvenile clients with behavioral health needs
    • …
    corecore