Definition
Programming by Example (PBE) is a paradigm in program synthesis where developers specify desired behavior through concrete input-output pairs rather than writing explicit code. The AI system analyzes these examples to infer the underlying function or transformation rule, generating executable code that satisfies the given specifications. This approach lowers the barrier to entry for software creation, allowing non-programmers to automate tasks like data cleaning or formatting. It relies heavily on search algorithms and constraint solving to find the most likely generalization from limited examples.
Summary
An AI technique where programs are synthesized automatically by inferring rules from input-output examples provided by users.
Key Concepts
- Program Synthesis
- Input-Output Examples
- Inductive Inference
- Low-Code/No-Code
Use Cases
- Excel formula generation from sample data
- Text transformation and data cleaning scripts
- Automating repetitive UI interactions