arrow
Return

Program synthesis algorithm based on context consistency heuristic

delete2023-08-01
delete0
PRE
AI
Q
Quansheng Dou *
H
Hao Pan
唐
唐焕玲 (Huanling Tang)
P
Ping Jiang
H
Huixian Wang
DOI:10.1007/s13042-023-01925-3delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Programming-by-example (PBE) is a program synthesis technique that automatically synthesizes computer programs from input-output (I/O) examples. There are many approaches to program synthesis, and one of the most commonly used solutions is to perform a search over the space of programs. In this paper, we present a novel program synthesis algorithm based on context consistency heuristic (PSACC) that differs from previous heuristic methods. We consider the input-output example as a state and develop a deep neural network-based predictor called DHFnet. DHFnet has the ability to map the current state to the first two instructions of the program which achieves the current state. By considering the current state and its subsequent state obtained by executing the corresponding instruction, we design a context consistency-based search algorithm. Our search algorithm enables a more reasonable and efficient selection of instructions in the program, by judging whether the instructions maintain the context consistency between the current state and its subsequent state. Furthermore, under the same experimental and testing environments, PSACC successfully enhances the success rate of program synthesis by 2-5%, and reduces the synthesis time compared to the baseline method. PSACC also exhibits better synthesis efficiency in terms of comprehensive performance compared to existing program synthesis methods.
Keywords:
Program synthesis
Search algorithm
Programming by example
Context consistency heuristic

Journal

International Journal of Machine Learning and Cybernetics cover
International Journal of Machine Learning and Cybernetics
IF:
2.7
Papers:
3.3K
Citations:
7.0K

Organization

No organization information available
Cited Papers

Cited Papers

A review of caregiver costs included in cost-of-illness studies
err2022-06-02
err0
errOAAI
errT. Joseph Mattingly; Valeria Diaz Fernandez; Dominique Seo; Andrea I. Melgar Castillo
errShare
errSave
The use of facial motion and facial form during the processing of identity
err2003-08-01
err0
PREAI
errBarbara Knappmeyer; Ian M Thornton; Heinrich H Bülthoff
errShare
errSave
Visual neuroscience research in China
err2010-04-29
err0
PREAI
errHaiShan Yao; HaiDong Lu; Wei Wang
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
errShare
errSave
Diagnosis of Spinal Disease with Ultrafine Flexible Fiberscopes in Patients with Chronic Pain
err2003-09-01
err0
PREAI
errToshiyuki Tobita; Manabu Okamoto; Misao Tomita; Tomohiro Yamakura; Hideyoshi Fujihara; Hiroshi Baba; Seiji Uchiyama; Wolfgang Hamann; Koki Shimoji
errShare
errSave
TOWARD AUTOMATIC PROGRAM SYNTHESIS
err1971-03-01
err129
errOAAI
errMANNA, Z; WALDINGER, RJ
errShare
errSave
no more