Problem Solving Approach In Data Management

William D. Haseman, Andrew B. WhinstonIJCAI 1975

Abstract: This paper explores a novel integration of Artificial Intelligence planning techniques with database management systems. By representing database schemas and software modules as logical operators within a "world model," the proposed system can automatically generate complex data processing paths to satisfy high-level, declarative user queries. This approach bridges the gap between raw data retrieval and functional computation, envisioning a database that acts as an active problem solver.

Introduction

In the mid-1970s, database management was primarily a matter of rigid retrieval. Answering complex questions that required both specific data and subsequent calculations typically necessitated writing custom programs to bridge the two. In their seminal paper, "Problem Solving Approach In Data Management," William D. Haseman and Andrew B. Whinston proposed a radical shift: treating a database query as an AI planning problem.

The Structural and Functional Gap

During the era of CODASYL-style databases, navigating data was a manual, path-oriented process. Users were required to understand the underlying network of records and sets to retrieve information. The authors identified two primary roadblocks in this paradigm:

  1. The Function Gap: Standard query languages lacked a seamless way to incorporate functions, such as calculating averages or generating plots, directly into the data retrieval path.
  2. The Structural Gap: Systems often failed if a query required a relationship not explicitly defined in the schema, even if the necessary data was present.

The challenge was to develop a "control program" capable of interpreting a user's goal and autonomously determining how to assemble disparate data points and software routines into a coherent answer.

System Architecture and Methodology

The authors leveraged techniques from AI "Problem Solving," specifically the STRIPS planning architecture, to navigate the database. The system treats the database schema and available program modules as a "world model."

Figure 1: High-level architecture of the proposed data management system, highlighting the central role of the Control Program in orchestrating queries and program modules.

The methodology involves several key components:

  • Initial State Representation: The database schema is modeled as a collection of "Well-Formed Formulas" (wffs) in predicate calculus, describing record types (TYPE), item ownership (BELONG), and record connections (CONNECT).
  • Operators: Two types of operators facilitate state transitions. Navigation Operators logically traverse set relationships, while Program Operators (software modules like averaging or plotting routines) are treated as operators with defined Preconditions (required input data) and Add/Delete Lists (the resulting data or states produced).
  • The Planner: Upon receiving a query (the Goal State), the control program employs theorem-proving algorithms to identify a sequence of operators that transforms the initial schema state into the desired goal.

Demonstrating the Problem-Solving Approach

The system's efficacy was demonstrated using a hypothetical large-scale database for water management, featuring metrics like REACH-NUMBER, FLOW-RATE, and TEMPERATURE. A key strength of this approach is its ability to handle declarative intent; a user specifies what they want rather than how to compute it.

Figure 4: A logical flow diagram illustrating how the system automatically sequences data retrieval, averaging, and plotting to satisfy a complex query.

As shown in Figure 4, for a query requesting a plot of averaged flow rates, the system automatically navigates to the required FLOW-RATE data, identifies the necessity of the AVERAGE function, and recognizes that AVERAGE generates a new data type required by the PLOT function. It then executes the entire sequence in the correct logical order.

Insights and Future Directions

This research introduced several forward-thinking concepts. By treating code as an operator, the database becomes an active participant in problem-solving. Furthermore, the system's ability to "restructure" the logical view of data on the fly—creating temporary record types to satisfy intermediate planning steps—represented a significant leap in flexibility.

While providing a powerful proof-of-concept, the authors noted limitations typical of early AI research. The computational cost of theorem proving for every query is high, suggesting a need for "learning" mechanisms to cache successful paths. Additionally, the system requires more robust semantic constraints to prevent nonsensical operations. Despite these challenges, this work serves as a foundational ancestor to modern self-service business intelligence and automated machine learning pipelines.

Summary updated

BibTeX
@inproceedings{haseman1975problem,
  author = {William D. Haseman and Andrew B. Whinston},
  title = {{Problem Solving Approach In Data Management}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1975},
}
Figure