A System Which Allows Students to Explore Algorithms

Derek H. SleemanIJCAI 1977

Introduction

In the mid-1970s, Computer-Assisted Instruction (CAI) was primarily characterized by two levels of sophistication. "Level One" systems functioned as digital multiple-choice machines, providing binary feedback on the correctness of a student's answer. "Level Two" systems were more advanced, capable of displaying the steps of a solution, yet they remained "black boxes"—they could not explain their underlying logic or diagnose the specific reasoning errors made by a learner. D.H. Sleeman’s 1976 research addressed this gap by proposing a system designed to make algorithms "transparent," allowing students to explore the why behind complex problem-solving rather than just the what.

The Challenge of Algorithmic Transparency

Sleeman identified that students often struggle not with the final solution, but with the "search" process itself. In complex domains like chemistry, problem-solving involves navigating a web of constraints and managing backtracking when a chosen path proves impossible. Traditional CAI systems failed to support this because they lacked a model of the student's mental process. Sleeman’s objective was to create a system capable of a Socratic dialogue, helping students debug their own mental models of an algorithm by making the system's internal logic visible and interactive.

System Architecture and Methodology

The system was implemented within the domain of Nuclear Magnetic Resonance (NMR) spectroscopy. To achieve transparency, the architecture utilized three distinct operational modes:

1. The HELP Mode (TRACE)

In this mode, the system generates a "TRACE" of its internal logic. This consists of a sequence of FACTS (assigned variable values) and DEDUCTIONS (logical conclusions derived from those facts). By exposing these internal states, the system provides a roadmap of the algorithmic path it followed to reach a conclusion.

2. The EXPLAIN Facility

When a student makes an incorrect assertion, the EXPLAIN facility is triggered. The system utilizes its internal "BUILD" algorithm to perform an exhaustive search of the problem space. It then demonstrates to the student exactly why their proposed path is physically impossible or which specific chemical rule it violates, providing a logical counter-argument to the student's error.

3. Following the Student’s Reasoning (FSR)

The FSR mode represents the system's most significant innovation. It attempts to bridge the gap between human reasoning and machine logic through a multi-step process:

  • Natural Language Input: The system asks the student to explain their logic in English.
  • Fuzzy Semantically Driven Parser: This component converts the student's natural language into a Formal Language (FL) representation.
  • Logical Comparison: The system compares the student's FL argument against its own internal TRACE. The parser is sophisticated enough to recognize logical equivalencies, such as "inverted" arguments (e.g., understanding that A >= B is functionally identical to B <= A) and domain-specific synonyms (e.g., equating "Area of peak" with "number of Hydrogens").

The Paraphrase Loop and Diagnostic Feedback

A critical feature of the FSR mode is the "paraphrase loop." Before analyzing the student's logic, the system paraphrases the student's explanation back to them in Natural Language. This serves as a diagnostic check, ensuring the computer has correctly interpreted the student's reasoning before proceeding with the analysis. This transparency ensures that the feedback provided is based on a correct understanding of the student's intent.

Key Insights and Qualitative Results

Sleeman’s work highlights several foundational ideas for intelligent tutoring:

  • Transparency over Correctness: The pedagogical goal is understanding the algorithm's constraints, not merely reaching the correct answer.
  • Search as a Human Strategy: The paper posits that while humans naturally use "depth-first search" strategies, they often fail at "resource management"—remembering which constraints were used before a backtrack. The system acts as an external memory for these resources.
  • Unified Representation: Sleeman argues that for true intelligence, the code that executes an algorithm and the code that explains it should be identical, suggesting a move toward LISP-like structures where data and code are interchangeable.

Qualitative analysis of student protocols (collected from approximately a dozen students) demonstrated that the FSR mode could successfully identify omitted facts, detect inconsistent deductions (e.g., a student claiming a value is 1 when their logic dictates it must be 0), and process "fuzzy" inputs regarding peak interactions and splitting rules. The system categorized these errors into five distinct cases, ranging from fully correct explanations to incompatible logic, allowing for highly targeted pedagogical interventions.

Limitations and Future Directions

Despite its successes, the system faced several limitations typical of its era. It was heavily domain-specific to NMR spectroscopy, and its knowledge base was fragmented; for instance, it could not answer general questions about chemical valency unless that topic was currently active in the logic trace. Furthermore, the "fuzzy" parser remained fragile and could be confused by irrelevant information or complex sentence structures. Sleeman concluded that future systems should move toward universal interpreters capable of explaining any part of their own code on the fly, rather than requiring developers to pre-determine which parts of an algorithm are "discussable."

Summary updated

BibTeX
@inproceedings{sleeman1977system,
  author = {Derek H. Sleeman},
  title = {{A System Which Allows Students to Explore Algorithms}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1977},
}
Figure