---
title: "Optimized Substructure Discovery for Semi-structured Data (2002)"
description: "How OPTT discovers discriminative tree patterns in semi-structured data through incremental search, compact occurrences, and safe pruning."
canonical: "https://research.elamur.ai/free/en/papers/abe-2002-optimized-substructure-discovery-semi-structured/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/abe-2002-optimized-substructure-discovery-semi-structured/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2002](https://md.research.elamur.ai/free/en/papers/2002/) / Optimized Substructure Discovery for Semi-structured Data

# Optimized Substructure Discovery for Semi-structured Data

Paper · 2002 · Kenji Abe, Shinji Kawasoe, Tatsuya Asai et al.

**Authors:** Kenji Abe, Shinji Kawasoe, Tatsuya Asai, Hiroki Arimura and Setsuo Arikawa · **Year:** 2002 · **Venue:** Lecture notes in computer science · **Licence:** No open licence stated (free-to-read copy; rights reserved) — text kept private

Lecture notes in computer science

- [PDF](https://link.springer.com/content/pdf/10.1007/3-540-45681-3_1.pdf)
- [DOI 10.1007/3-540-45681-3_1](https://doi.org/10.1007/3-540-45681-3_1)

## What it is about

How OPTT discovers discriminative tree patterns in semi-structured data through incremental search, compact occurrences, and safe pruning. · about 32 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A structure can be common without telling us anything useful. A movie entry that identifies its director may occur throughout a collection, while a particular certification may distinguish action movies from family movies. “Optimized Substructure Discovery for Semi-structured Data,” by Kenji Abe and colleagues, studies how to find the latter kind of structure automatically. The input consists of documents with nested structure and a binary designation indicating which documents interest the user. The task is to discover a small structural pattern that separates those documents from the others as well as possible.

The authors represent documents and candidate patterns as labeled, ordered trees. Nodes carry labels, parent–child links describe nesting, and the order of children preserves the sequence within a document. A candidate pattern becomes a yes-or-no test: does this structure occur in the document? The quality of that test depends on the class composition of both the documents it matches and those it leaves unmatched. Rather than searching only for frequent structures, the method directly minimizes a statistical measure of the ambiguity remaining after this split. The paper considers classification error, information entropy, and the Gini index.

Their algorithm, OPTT, builds on the earlier frequent-tree miner FREQT. It combines a canonical way of extending trees, a compact representation of pattern occurrences, and a bound that eliminates branches unable to improve the current result. Canonical extension prevents the same candidate from being generated along different construction paths. Compact occurrence lists allow a larger pattern’s matches to be computed from those of its predecessor. The statistical bound supplies the pruning criterion that an ordinary minimum-frequency threshold cannot provide for this objective.

The theoretical result is deliberately conditional. With a fixed maximum pattern size and a fixed maximum number of children per data node, the running-time bound is linear in the total number of data nodes. Removing the size restriction changes the picture: the authors establish an approximation-hardness result for maximum agreement when the label alphabet is also unrestricted. Their experiments reflect this distinction. Runtime appears to grow linearly with document size under a fixed pattern limit, but exponentially with the allowed pattern size on a fixed collection.

Experiments on Citeseers HTML and Imdb XML also separate the effects of search order and pruning. On the reported Imdb comparison, depth-first search uses 8.0 MB, whereas breadth-first search uses 96.4 MB. Convexity-based pruning reduces depth-first runtime from 29.7 seconds to 21.5 seconds; the corresponding breadth-first times are 20.2 seconds and 20.0 seconds. The discovered movie patterns illustrate the intended benefit: a broadly shared director structure is frequent but uninformative, while a certification structure can characterize a class even without matching every member. These are findings about structural discrimination within the supplied collections, rather than evidence that the resulting patterns express general truths about movies.

### Ideas worth borrowing

Optimize the distinction that matters. Frequency answers whether a structure is common; a discriminative objective asks whether it helps separate a designated subset from its background. Comparing both matched and unmatched cases prevents a universally shared structure from looking useful merely because it appears often. This principle applies to error analysis, document filtering, feature discovery, and [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/), wherever the practical question concerns differences between groups.

Give every candidate a unique construction history. OPTT extends only the current tree’s rightmost branch, making the candidate space itself a tree. A structure therefore has a canonical predecessor instead of several competing derivations. This removes duplicate-generation work before expensive evaluation begins. Similar designs can help enumerate syntax fragments, symbolic expressions, query structures, and constrained combinations of rules.

Store the evidence needed for the next operation. Full embeddings contain more information than OPTT needs for its extension procedure. The algorithm instead retains rightmost-leaf occurrences and derives successor lists from them. The broader lesson is to design intermediate state around the operation that consumes it. This can reduce memory and repeated matching in incremental analysis, provided a correctness argument establishes that the retained information is sufficient.

Prune with an optimistic bound. An extension cannot gain matched documents that its predecessor did not match. OPTT combines this monotonic restriction with the shape of the statistical objective to calculate a best-case bound for every descendant. A branch is discarded only when even that optimistic possibility loses to an already examined candidate. The same reasoning can make exact symbolic searches practical without substituting an arbitrary frequency cutoff for the intended objective.

Treat traversal order as a resource decision. Breadth-first and depth-first search can explore the same canonical candidate space while imposing very different demands on memory. The paper’s comparison shows why runtime alone is an incomplete engineering criterion. Search order matters in tasks where intermediate candidates and their supporting evidence occupy more space than the final answer.

Make tractability parameters explicit. The favorable runtime claim depends on pattern size and branching, not just on input length. The experiment that increases the pattern limit exposes the cost hidden by a fixed-size scalability plot. This is useful practice for [evaluation](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/): report which parameters remain fixed, vary the parameters most likely to cause combinatorial growth, and distinguish a conditional guarantee from unrestricted efficiency.

Inspect what the optimum actually says. A strong statistical pattern can be obvious, indirect, or dependent on how the data was assembled. The movie examples include both an explicit genre field and a less direct certification field. Displaying patterns alongside their class-specific coverage makes the output interpretable and helps users decide whether a result is informative for their purpose. The same habit benefits diagnostic rules, corpus discoveries, and automatically proposed dictionary distinctions.

### How Mova uses it

Mova is a small, transparent language system written in Rust. Its documented language pipeline already produces dependency trees, reads them into frames, and maintains explicit world state. It also has rule-induction procedures, source-bound dictionary evidence, and separate admission paths for reviewed learning material. Those mechanisms provide several possible points of contact with OPTT. They do not establish that Mova implements this algorithm or that the paper’s statistical bounds transfer unchanged to its representations.

The status marks below compare each proposal with documented mechanisms. They indicate an engineering assessment, instead of a measured application of this paper. Where a proposal introduces an additional search procedure or objective, its benefit remains unverified.

Idea: Optimize structural discrimination rather than raw frequency. Where: Introduction and Section 2.1. Area: statistics and rule discovery. Mova: частково є (`world induce`, `world selfplay`, and `tools/dictindex`). Mova already induces readable repairs, evaluates changes, and proposes statistically supported dictionary selectors. OPTT suggests an additional procedure: compare a tree fragment’s presence in successful and unsuccessful analyses, then score the resulting split directly. The current evidence does not establish this particular objective or search. Why Mova: It could prioritize structures associated with a specific failure instead of structures that are merely common throughout a corpus.

Idea: Preserve the negative background when explaining a subset. Where: Introduction and Section 2.1. Area: evaluation and corpus analysis. Mova: частково є (`tools/dictindex` statistics and source-domain strata). The dictionary index already computes feature statistics against broader occurrence totals. A structural discovery experiment could explicitly retain both the target examples and a declared comparison group, including unmatched documents in its score. The background must be chosen for the linguistic question rather than assembled opportunistically. Why Mova: A proposed sense distinction or repair condition becomes more informative when its apparent specificity is tested against relevant alternatives.

Idea: Use canonical rightmost extension for candidate generation. Where: Section 3.2 and Theorem 1. Area: algorithms and syntax. Mova: нове. The documented tree readers and rule induction provide possible consumers, but do not establish OPTT’s enumeration procedure. A bounded structural miner could give every candidate fragment a unique predecessor by deleting its final preorder node. Any adaptation would first need to define how dependency labels, token order, and node attributes enter the pattern language. Why Mova: Unique construction histories could avoid duplicate work while preserving an inspectable account of how each candidate was formed.

Idea: Maintain compact extension evidence. Where: Section 3.3 and Lemma 1. Area: data processing. Mova: частково є (`tools/dictindex` compact postings and stored frames). Mova already stores compressed evidence with stable occurrence identities, but its dictionary postings are not OPTT rightmost-occurrence lists. An experimental tree miner could retain extension-specific endpoints alongside source references, with a proof or exhaustive small-case check that successor construction loses no valid matches. Why Mova: This could make structural discovery affordable without duplicating full dependency trees for every candidate.

Idea: Eliminate duplicate occurrence updates before scoring. Where: Figure 6 and Section 3.3. Area: algorithms and statistics. Mova: частково є (`tools/dictindex` distinct-sentence retrieval and feature-counting rules). Existing counting conventions already prevent certain repeated contributions. OPTT adds a more specific lesson: different embeddings can lead to the same extension endpoint, so update logic must suppress those duplicates. A new structural index should declare its counting unit independently of its internal embedding representation. Why Mova: Duplicate endpoints could inflate support and waste computation even when the visible candidate structure is unique.

Idea: Score document presence separately from occurrence abundance. Where: Section 2.1 and Section 3.4. Area: statistics. Mova: частково є (`tools/dictindex` token counts and distinct-sentence query results). OPTT evaluates whether each document contains a pattern, while its internal lists may contain several endpoints in that document. Mova could report a structural feature’s document coverage separately from its token or sentence frequency. These quantities answer different questions and should retain separate names. Why Mova: A repetitive document should not silently acquire extra influence in an experiment whose objective concerns coverage across documents.

Idea: Use a safe statistical bound for branch pruning. Where: Section 3.4 and Theorem 2. Area: mathematics and search. Mova: нове. The documented combinatorial tooling does not establish this impurity-based pruning mechanism. A bounded ordered-tree miner could calculate the descendant bound before generating further structures, provided its matching relation guarantees that extension only removes matching documents. The guarantee would have to be re-established for any generalized pattern language. Why Mova: It offers a route to faster exact discovery while keeping the pruning decision mathematically explainable.

Idea: Preserve tied optima. Where: Figure 3 and the stated OPTT output. Area: algorithms and interpretability. Mova: нове. The documented top-K judging and model-comparison tools are related capabilities, but do not demonstrate enumeration of all equally optimal structural patterns. A discovery tool could keep equal-scoring candidates and attach their respective witnesses instead of returning only the first one encountered. Why Mova: Equally successful conditions may reveal different linguistic explanations, and the tie itself is useful evidence of ambiguity.

Idea: Choose traversal order according to memory constraints. Where: Section 3.1 and Table 1. Area: resource management. Mova: частково є (`tools/jobs` resource limits and `tools/twin` cost calibration). Mova already has mechanisms for recording resource estimates and actual costs. A structural miner could expose depth-first and breadth-first traversal as explicit execution choices, then measure their memory behavior on the same corpus. The paper’s measurements cannot serve as predictions for Mova’s implementation. Why Mova: The search may become practical through a different traversal even when its candidate language and statistical objective remain unchanged.

Idea: Bound the pattern language before claiming scalability. Where: Theorem 3, Theorem 4, and Figure 8. Area: evaluation and execution policy. Mova: частково є (`tools/enrich` bounded proposals and the configured native deputy’s execution limits). Mova already treats bounded scope as an operational contract. A structural discovery component should similarly declare maximum pattern size, matching semantics, and relevant data-shape limits in each run. Why Mova: It would make resource claims reviewable and prevent input-length scalability from concealing sensitivity to structural complexity.

Idea: Measure input growth and pattern growth independently. Where: Figures 7 and 8. Area: evaluation. Mova: частково є (`tools/dictindex measure`, `tools/twin`, and documented held-out evaluation practices). Existing measurement infrastructure could support separate experiments that vary corpus size and candidate size. The important proposal is the experimental separation, not a forecast of linear behavior. Why Mova: It would show whether a slowdown comes from reading more evidence or from exploring a much larger space of possible explanations.

Idea: Compare mechanisms under a shared task. Where: Table 1 and the search-strategy discussion. Area: evaluation. Mova: вже є (`en rules-audit`, rule-disable controls, and regression-gated learning). Mova already documents controlled comparisons between enabled and disabled mechanisms. OPTT reinforces the value of applying that discipline to a miner’s traversal and pruning separately, with time and memory recorded together. An existing evaluation practice can therefore be reused without claiming that the structural miner itself exists.

Idea: Retain discovered structures with their coverage evidence. Where: Figure 9. Area: interpretability and provenance. Mova: вже є (`tools/dictindex` source credits and posting identifiers, plus rule and answer explanations). Mova already treats witnesses and reasons as part of an output’s meaning. A structural proposal should retain its exact pattern, matched source identities, comparison group, and objective value through the same evidence-oriented approach. The paper contributes a useful output example rather than establishing Mova’s provenance design.

Idea: Distinguish an obvious label field from a useful indirect clue. Where: Figure 9. Area: evaluation and information extraction. Mova: частково є (`tools/dictindex` assessment exclusions and `tools/enrich` source checks). Mova already restricts which materials enter dictionary evidence and learning proposals. An additional analysis could classify discovered conditions according to whether they directly encode the target designation or identify a less direct association. Why Mova: A statistically strong condition may add little explanatory value if it simply repeats the answer already present in the input.

Idea: Mine ordered syntax fragments with explicit matching semantics. Where: Section 2.2. Area: syntax. Mova: частково є (`en` Universal Dependencies trees and `world induce`). Mova has the necessary structured input and an existing repair-induction path. OPTT suggests exploring bounded labeled fragments that preserve direct dependency edges and sibling order. This would be a proposed pattern language, not an established description of current induction. Why Mova: Structural conditions could distinguish configurations that share words but differ in grammatical relations or attachment.

Idea: Keep contiguous edges distinct from sibling gaps. Where: Section 2.2 and the comparison with Zaki in Section 1.3. Area: syntax and representation. Mova: частково є (`en` dependency structure and `prag` frame roles). OPTT allows selected siblings to have other siblings between them, while retaining direct parent–child relationships. A Mova discovery interface could state these choices explicitly rather than treating every kind of omitted material as equivalent. Why Mova: This would make discovered rules easier to interpret and reduce accidental transfer between structurally different matching tasks.

Idea: Separate occurrence updating from objective selection. Where: Sections 2.1, 3.1, and 3.3. Area: software architecture and statistics. Mova: нове. Mova has several statistical and symbolic components, but the documented evidence does not show a reusable OPTT-style structural enumeration layer with interchangeable impurity objectives. Such a component could reuse exact matching evidence while comparing classification error, entropy, and Gini-based scoring. Why Mova: It would help determine whether a proposed discovery depends on the evidence itself or on the statistical preference used to rank it.

Idea: Distinguish an exact optimum from a greedy search result. Where: Section 2.1 and Section 1.3. Area: reasoning and evaluation. Mova: частково є (`world selfplay`, top-K judging, and source-bound combinatorial checks). Mova already records bounded experiments and candidate judgments. A future structural tool should additionally state whether it exhausts its declared search space, stops under a budget, or selects candidates greedily. Why Mova: The strength of the conclusion depends on the search guarantee, even when different procedures return the same visible pattern.

Idea: Treat discovered associations as proposals for admission. Where: Figure 9 and the optimized-discovery objective in Section 2.1. Area: knowledge admission. Mova: вже є (`tools/enrich` staging boundaries and Nautilus dictionary review). Mova already separates statistical suggestions and reviewed drafts from admitted knowledge. An OPTT-derived association would fit that boundary: it could propose a condition or diagnostic, while source review and task-specific checks determine whether anything enters durable knowledge. Statistical optimality within a collection would remain a different claim from linguistic correctness.

Idea: Apply structural contrast to pragmatics errors. Where: Sections 2.1 and 2.2. Area: pragmatics. Mova: частково є (`prag` frames, attribution records, and corpus preparation). The paper studies document trees, not pragmatic inference. A Mova experiment could nonetheless encode an explicitly tree-shaped portion of a frame analysis and compare configurations associated with different annotation outcomes. Graph-shaped or overlapping relationships would require a separate representation decision. Why Mova: This could expose recurring structural contexts behind attribution or connective mistakes without treating lexical frequency as an explanation.

Idea: Search for dictionary selectors that discriminate reviewed groups. Where: Introduction, Section 2.1, and Figure 9. Area: lexical semantics and lexicography. Mova: частково є (`tools/dictindex propose`, reviewed selectors, and append-only labels). The existing index proposes overlapping frame and collocate selectors using support and PMI. A distinct experiment could rank bounded structural selectors against reviewed groups and an explicit background. The resulting selector would still require exact witnesses and independent review. Why Mova: It may identify useful combinations of grammatical evidence that single-feature proposals cannot express.

Idea: Keep favorable complexity claims tied to their structural assumptions. Where: Section 4.1. Area: mathematical specification. Mova: частково є (groupants, declared invariants, and source-bound checks). Mova already has a vocabulary for assumptions and conformance evidence. A miner’s description could state separately the total data size, maximum branching, and maximum candidate size on which its bound depends. Why Mova: This would connect a mathematical guarantee to observable properties of an actual run instead of presenting linearity as an unconditional property.

### The problem and its context

Semi-structured documents occupy an awkward position between rigid records and unstructured text. The paper’s examples are Web pages and XML data: objects with recognizable nesting, but without a uniform arrangement that every entry must follow. One person may have several telephone fields, another may have a name divided into first and last components, and another may carry a different selection of attributes. The structure is useful evidence, yet it does not fit a single fixed table of fields.

The authors describe growing collections of such material as a challenge for conventional data mining. Their question is narrower than extracting every fact from a document. Given a collection and a user-designated subset, which recurring structural configuration best characterizes that subset relative to the rest?

That qualification matters. If every movie record contains information about its director, the director structure will be frequent among action movies. Its frequency does not make it characteristic of action movies, because family movies contain it as well. A method that searches only within the interesting subset can therefore spend its effort rediscovering the general format of the database.

The opposite problem concerns useful patterns with limited coverage. A certification can be strongly associated with the designated class without appearing in every member. Searching only for very frequent patterns risks losing it among structures that have broader support but less discriminative value. The paper’s objective gives such a pattern a chance by considering how its matches are distributed across classes.

This places the work within optimized pattern discovery. The authors trace that framework to statistical decision theory and describe its subsequent study in learning theory and data mining. A pattern is evaluated as a binary attribute: each document either matches it or does not. The optimization concerns the quality of that split, according to a chosen statistical function.

The distinction from ordinary predictive-tree construction is also explicit. The paper discusses C4.5 as an example in which a split-quality measure guides greedy choices. OPTT instead searches for a globally best pattern within its declared class and size restriction. It is not merely choosing the next useful step in a larger greedy construction.

The earlier semi-structured mining literature, as the authors describe it, mainly emphasizes frequent structures. Several methods use direct candidate generation followed by testing, or levelwise search related to Apriori. Those strategies can be expensive because they generate many candidates, and their usual frequency thresholds do not directly serve the optimized objective.

FREQT, the authors’ earlier tree miner, supplies a different foundation. It constructs candidate trees incrementally and updates their occurrence information during the same process. OPTT retains that machinery but changes the search goal. The crucial additional problem is how to avoid exploring unpromising candidates without discarding low-frequency patterns that could be excellent discriminators.

The paper identifies related approaches with different guarantees or representations. Matsuda and colleagues use graph-based induction to seek near-optimal tree-like structures through greedy search. Inokuchi and colleagues develop an Apriori-style method for frequent subgraphs and extend it towards optimized discovery. Zaki independently develops a tree-mining approach with essentially the same enumeration principle, while considering ordered trees with gaps and additional search improvements.

These comparisons locate the contribution precisely. The novelty is not simply that documents can be represented as trees, nor that statistical split criteria exist. It is the combination of an exact bounded structural search, an incremental occurrence representation, and objective-specific pruning, accompanied by a tractability analysis that explains both the favorable case and its limits.

### The method, step by step

#### Start with documents and a target designation

The input has two components. The database contains document trees, and an objective attribute assigns each document a positive or negative designation. Positive means that the document belongs to the subset of interest; it does not imply that the document is better or more correct.

A candidate pattern is another labeled ordered tree. Matching turns that structure into a binary attribute over the database. The algorithm can then compare the class composition of matching documents with the class composition of nonmatching documents.

There are consequently several different objects to keep separate: a document’s target designation, a pattern’s presence in that document, and the pattern’s aggregate statistical score. The target is supplied with the sample. Pattern presence is computed through structural matching. The score is derived from the resulting counts.

OPTT’s bounded search for discriminative structures The steps in order.

#### Define precisely what a pattern can match

Each data tree has a root, labeled nodes, directed parent–child edges, and an ordering among the children of each node. “Ordered” concerns those children, not an alphabetical ordering of labels. This preserves the sequence of nested components in the document.

Patterns use the same structural vocabulary. Their nodes are numbered in preorder, meaning that traversal visits a node before descending through its children from left to right. Under this numbering, the root comes first and the rightmost leaf comes last.

An occurrence is an injective mapping from pattern nodes to data nodes. Injective means that distinct pattern nodes cannot collapse onto the same document node. Labels must match exactly.

The mapping also preserves direct parent–child relationships. A pattern edge therefore cannot stand for an arbitrary path through several document levels. If a pattern makes one node the immediate parent of another, their images must have that same immediate relationship.

Sibling order is preserved through the transitive sibling relation. This allows a pattern to select ordered children without requiring that they be consecutive children in the document. Unselected siblings may lie between them. Thus the matching relation is strict about vertical edges but permits omissions within a horizontal sibling sequence.

The pattern need not begin at the document root. Its root can map to a suitable internal document node. That makes the method a search for local nested configurations rather than a comparison of entire document shapes.

These choices determine what a discovered pattern means. A certification structure expresses a particular sequence of immediate nesting relationships. It does not merely state that the words associated with certification occur somewhere in the same document.

#### Measure the ambiguity after a split

The paper uses an impurity function to evaluate class mixing. Its input is the positive proportion within a group. A pure group contains documents from only a single class; a mixed group contains both.

The classification-error impurity is:

```
ψ₁(x) = min(x, 1 − x)
```

Here, x is the positive-class proportion in a group, and ψ₁ is its impurity under classification error. The expression corresponds to the smaller class proportion, which is the error incurred by assigning the group its majority designation.

The entropy impurity is:

```
ψ₂(x) = −x log x − (1 − x) log(1 − x)
```

Here, ψ₂ is entropy, x again denotes the positive proportion, and log is the logarithm appearing in the paper’s definition. The expression evaluates uncertainty about class membership within the group.

The Gini impurity is:

```
ψ₃(x) = 2x(1 − x)
```

Here, ψ₃ is the Gini function. The factors x and 1 − x are the proportions of the positive and negative classes.

All these functions favor groups dominated by a single class. However, scoring only the matched group would leave out what happens to the remaining documents. OPTT evaluates both sides of the split, weighting each group by its size.

The objective is:

```
Ψ(T) = (N₁T + N₁F) ψ(N₁T / (N₁T + N₁F)) + (N₀T + N₀F) ψ(N₀T / (N₀T + N₀F))
```

T is the candidate tree pattern. N₁T counts positive documents matched by the pattern, while N₁F counts matched negative documents. N₀T and N₀F count the corresponding unmatched documents. The function ψ is the chosen impurity function, and Ψ(T) is the total weighted impurity of the split.

The subscript conventions separate pattern presence from target class. A leading 1 means matched and a leading 0 means unmatched; the trailing T and F distinguish positive from negative documents. These are document counts, not counts of embeddings.

This last distinction is essential. A pattern may occur at several positions in a document, but the document still contributes only its matched status to the optimization objective.

#### Summarize a candidate by its stamp point

For a fixed sample, the objective depends only on how many positive and negative documents match. The paper calls this pair the pattern’s stamp point.

```
(x, y) = (N₁T, N₁F)
```

Here, x is the matched-positive count and y is the matched-negative count. The complete structural pattern determines these values through matching, but once they are known, the score can be calculated without inspecting the pattern’s internal shape.

Using the total class counts gives an equivalent objective:

```
Φ(x, y) = (x + y) ψ(x / (x + y)) + (N − (x + y)) ψ((Nᵀ − x) / (N − (x + y)))
```

Nᵀ is the total positive-document count, N is the total number of documents, and x + y is the number matched. The second group therefore contains N − (x + y) documents, including Nᵀ − x positives. Φ is the same split cost expressed in terms of counts.

The notation requires care because the paper later reuses N for total data nodes in its complexity analysis. In this statistical expression, N counts documents. In the runtime bounds below, N counts nodes. Confusing them would change the meaning of the claims.

#### Generate candidates through rightmost extension

The search begins with an empty pattern, which matches everywhere by convention. Larger candidates are formed by adding a leaf.

The restriction is that the new leaf must become the final child of a node on the current rightmost branch. That branch connects the root to the tree’s rightmost leaf. Different attachment positions along it generate different possible shapes, while the new node’s label determines the structural content being added.

Why impose this restriction? Unrestricted leaf addition would allow a final tree to be built in several orders. The algorithm would then need to recognize and discard duplicate candidates. Rightmost extension instead builds uniqueness into the search space.

Theorem 1 states that the resulting enumeration graph is itself a tree. Every nonempty candidate has a unique predecessor. Intuitively, deleting the last node in preorder recovers that predecessor, so the construction has an unambiguous reverse operation.

This is compatible with both breadth-first and depth-first traversal. The candidate language does not change when traversal order changes. What changes is which candidates are kept pending and when they are evaluated.

The maximum pattern size supplies a stopping boundary. OPTT seeks all best patterns within that bound, not an unrestricted optimum over arbitrarily large structures.

#### Update matches without storing every embedding

A direct implementation could store, for every occurrence, the document node assigned to every pattern node. That would retain the complete embedding. OPTT instead keeps the data nodes corresponding to the pattern’s rightmost leaf.

The key claim is not that endpoints are always sufficient for tree matching. They are sufficient for this matching relation and this particular extension operation. The shape of the existing pattern tells the update procedure how to navigate from an endpoint to potential locations for the added leaf.

If the new node is attached as a child of the current rightmost leaf, the procedure scans that data node’s children. If the attachment is higher on the rightmost branch, it moves to the appropriate ancestor and considers subsequent siblings at the relevant level. Candidate nodes with the required label become rightmost occurrences of the extended pattern.

This update is incremental. It starts from the predecessor’s occurrence list rather than searching every document afresh for the larger pattern. The retained information is therefore selected to support the next operation efficiently.

Several predecessor occurrences can lead to the same extension region. The update algorithm includes duplicate detection so that the new list does not repeatedly contain the same endpoint. Lemma 1 states that the procedure produces the complete rightmost-occurrence set without duplicates.

The node-based lists still need to be interpreted at document level when evaluating a candidate. Several endpoints from the same document establish several possible occurrences, but only a single matched document for the statistical score.

#### Bound what descendants could achieve

Structural extension has a useful monotonic property. Every document matched by an extended pattern must also match its predecessor. Adding requirements may remove matching documents, but cannot introduce a document that lacked the smaller pattern.

If a pattern has stamp point (x, y), a descendant can therefore retain no more than x positives and no more than y negatives. Its possible stamp points lie within the rectangle bounded by those counts and the origin.

The paper uses the shape of the impurity objective to lower-bound the cost anywhere a descendant could lie:

```
Φ(x′, y′) ≥ min(Φ(x, 0), Φ(0, y))
```

The pair (x′, y′) is the stamp point of a descendant. The right side evaluates optimistic class-pure matching possibilities derived from the current pattern’s coverage. It is a lower bound on descendant cost, not a promise that a real descendant attains either endpoint.

The terminology deserves attention. The paper calls the relevant property “convexity,” but its impurity examples and displayed inequality have the usual mathematical shape of concavity. The practical point is the bound stated in Theorem 2. That bound, combined with monotonic coverage, is what justifies pruning.

OPTT compares this optimistic descendant cost with the best actual score seen so far. If even the lower bound is strictly worse, the entire branch can be abandoned.

The strict comparison preserves ties. A branch whose bound equals the current optimum cannot be rejected on that basis, because it may contain another equally good pattern. This supports the stated goal of returning all optimal bounded patterns.

#### Understand what the complexity guarantee depends on

The theoretical analysis introduces total node count N, maximum branching b, and maximum pattern size k. Its principal bound is:

```
Time(OPTT) = O(k^(k+1) b^k N)
```

Here, Time(OPTT) is the algorithm’s running time, N is the sum of document-tree nodes, b is the largest number of children of any data node, and k limits candidate size. The notation O describes an asymptotic upper bound.

The dependence on N is linear only after k and b are fixed. The other factors can grow rapidly. The theorem therefore explains why bounded local patterns can be practical while larger structural searches become difficult.

The proof analyzes the combined lengths of occurrence lists rather than simply multiplying the number of syntactically possible candidates by a full-database matching cost. Its central recurrence is:

```
R(k) ≤ kbR(k − 1)
```

R(k) denotes the total rightmost-occurrence-list length at pattern size k. The recurrence bounds how extension positions and data branching can increase that total from the preceding level.

This approach also explains why incremental occurrence construction matters theoretically. Its cost follows actual extension evidence rather than requiring a fresh test of every possible labeled structure against the whole database.

For comparison, the paper considers a label vocabulary that grows with the data:

```
l(N) = O(N^α)
```

Here, l(N) is the number of distinct labels as a function of node count, and α is the growth exponent under the paper’s stated assumptions.

Under that setting, the generate-and-test estimate is:

```
T(N) = Θ(2^(ck) N^(1+kα))
```

T(N) is the comparison procedure’s runtime, c is the constant in the paper’s candidate-count expression, and k again limits pattern size. Θ denotes an asymptotically matching order of growth. The important contrast is that this expression is not linear in N under the stated vocabulary growth.

The result does not make all tree mining inexpensive. It identifies a particular representation and incremental search whose bounded-case dependence on input size is favorable.

### Experiments and results

#### Data and implementation

The experiments use Citeseers and Imdb. Citeseers contains HTML pages produced through CGI from a research-information site. Imdb contains movie entries obtained from an online database and manually transformed into XML.

According to the paper, each of the two collections contains hundreds of thousands of nodes and thousands of unique tags. It does not provide a complete experimental inventory that would allow every plotted result to be reconstructed from a fully specified collection definition.

OPTT is implemented in Java using SUN JDK1.3.1 JIT and the OpenXML DOM library. The reported machine has a Pentium III 600MHz processor, 512 MB of memory, and Linux 2.2.14. These details anchor the absolute timings to the authors’ environment.

The variants differ along separate axes. BF denotes breadth-first traversal, DF denotes depth-first traversal, and C indicates the statistical pruning rule. FREQT supplies a frequent-pattern comparison, whose objective differs from OPTT’s optimized discovery.

#### Increasing document size

For Citeseers, the authors fix the maximum pattern size at k = 5 and vary input size from 316 KB, containing 22,847 nodes, to 5.61 MB, containing 402,740 nodes.

They describe the resulting runtime curve as approximately linear. This observation agrees with the bounded-case theorem when the relevant structural parameters remain controlled.

The result is an input-size scalability finding under a fixed pattern restriction. It does not establish that increasing every aspect of the search remains inexpensive. The precise intermediate timings are not stated numerically in the surrounding discussion, so they should not be reconstructed from the plotted trend.

#### Increasing pattern size

The complementary experiment holds the dataset fixed. It uses an Imdb subset of 40 KB with 5835 nodes and varies the maximum pattern size from 1 to 11.

The runtime plot has a logarithmic vertical scale. The authors interpret its progression as exponential growth with the allowed pattern size.

This experiment is especially important because it tests the parameter hidden by the fixed-size scalability experiment. Reading a larger collection and considering a larger structural language are different computational demands.

The pair of experiments is therefore more informative than either alone. The method can scale well with data volume while remaining sharply constrained by the complexity of the patterns it is permitted to consider.

#### Traversal and pruning

Table 1 compares traversal and pruning on Imdb data of size 40 KB. The runtimes are:

Imdb 40 KB, runtime across mining settings Pruning helps depth-first traversal more visibly than breadth-first traversal.

**The numbers**

| System or setting | seconds |
| --- | --- |
| OPTT depth-first | 29.7 |
| OPTT depth-first with pruning (this paper) | 21.5 |
| OPTT breadth-first | 20.2 |
| OPTT breadth-first with pruning | 20.0 |
| FREQT breadth-first, 0.1% threshold | 10.4 |

FREQT is faster in this comparison, but it answers a different question. Its frequency threshold restricts discovery to a support-defined set, while OPTT seeks the best split according to its objective. The timing therefore supplies context about computational cost, instead of a quality ranking between interchangeable systems.

The associated space measurements show a much stronger traversal effect:

Imdb 40 KB, space across mining settings Depth-first OPTT retains much less search state than its breadth-first variants.

**The numbers**

| System or setting | MB |
| --- | --- |
| OPTT depth-first | 8.0 |
| OPTT depth-first with pruning (this paper) | 8.0 |
| OPTT breadth-first | 96.4 |
| OPTT breadth-first with pruning | 96.4 |
| FREQT breadth-first, 0.1% threshold | 20.7 |

These measurements support the paper’s recommendation to take depth-first traversal seriously when memory matters. They also show why pruning and traversal should be evaluated separately: pruning changes runtime here without changing the reported space figure within either traversal family.

#### What the discovered movie structures reveal

To produce the qualitative examples, the authors use XML entries for 15 action films and 15 family films to optimize Gini. They describe the collection as 1 MB with over two hundred thousands nodes.

The explicit action-genre pattern has size 3, a reported Gini value of 0.125, coverage of 15/15 action entries, and coverage of 1/15 family entries. It is highly discriminative in the sample, but its meaning is unsurprising: the structure directly inspects a genre designation closely connected to the target grouping.

A certification pattern has size 4 and a reported Gini value of 0.333. It appears in 12/15 action entries and 0/15 family entries. The nested structure identifies a certification value of 15, which the authors interpret as an age restriction in at least one country.

This second pattern illustrates why optimized discovery need not require universal positive coverage. It misses some action entries, yet its matched group contains no family entries in this collection.

The frequent comparison pattern identifies a director/person structure. Its reported frequency is 1.00, with coverage of 15/15 in each class. This is exactly the kind of broadly shared structure that a frequency-oriented search can favor without helping distinguish the target subset.

The displayed Gini values should be retained as reported. The examples do not clearly explain their normalization relative to the earlier weighted-sum definition. That presentation issue does not erase the class-coverage evidence, but it limits how confidently the displayed values can be reconciled with the formal objective.

### What the ablations show

#### Traversal changes memory more than the visible result language

The depth-first and breadth-first variants are a controlled comparison of search order. They use the same general candidate construction, so the main conceptual change is which candidates remain on the boundary awaiting exploration.

Depth-first traversal proceeds down a construction branch before returning to alternatives. Breadth-first traversal retains a wider level of pending candidates. The space results are consistent with that difference in retained search state.

The comparison supports an engineering conclusion: a method with acceptable processing time may still be unattractive if its traversal keeps too many occurrence lists alive. Memory is part of the search algorithm’s practical behavior, instead of a secondary implementation detail.

It does not establish that depth-first traversal always wins. The reported breadth-first variants have shorter runtimes on this dataset. The useful finding is the tradeoff, with depth-first traversal providing the much smaller reported memory demand.

#### Pruning helps according to when a useful incumbent is available

Comparing each traversal with its C variant isolates the contribution of the bound. The effect is visibly stronger for depth-first traversal than for breadth-first traversal in the reported timings.

The bound depends on the best score already observed. A strong incumbent permits more aggressive rejection of branches whose optimistic costs are worse. Search order therefore influences not only memory use but also the information available when pruning decisions are made.

That is a mechanism-level explanation of why traversal and pruning can interact. The paper does not provide a detailed trace showing when each incumbent was discovered, how many branches were removed, or how much time was spent evaluating bounds. The timing comparison supports the effectiveness claim, but does not fully decompose its cause.

The identical reported space measurements with and without pruning also deserve a narrow reading. They show no visible space benefit under this measurement and setup. They do not prove that pruning can never reduce peak memory in another collection.

#### Fixed input and fixed pattern experiments answer different questions

The Citeseers and Imdb scaling analyses act as complementary controls. Holding pattern size fixed tests whether greater data volume is manageable. Holding the dataset fixed while increasing pattern size tests how the candidate language expands.

Their results agree with the structure of the theorem: input size enters favorably under bounded conditions, while pattern size remains expensive. This is more precise than a generic statement that the algorithm is scalable.

There is no reported experimental ablation replacing canonical enumeration with unrestricted generation, nor one replacing compact endpoint lists with complete embeddings. Those mechanisms are supported through the algorithmic analysis and cited correctness results, rather than independently timed component comparisons.

#### The examples compare objectives, not predictive generalization

The movie examples contrast a useful split with a structure that occurs everywhere. This is an analysis of what the objective rewards.

The certification structure demonstrates selective coverage; the director structure demonstrates nondiscriminative frequency. The explicit genre structure additionally shows that an optimum can be statistically strong while semantically obvious.

These examples do not compare held-out classification accuracy, and they do not measure whether users judge the discoveries surprising. Their value is explanatory: they make the difference between frequent structure and class-characterizing structure concrete.

### Limitations

#### Limits the authors establish or acknowledge

The most important stated limitation is structural complexity. The favorable runtime bound assumes bounded pattern size and controlled branching. The experiment that increases pattern size shows a rapid rise in computational cost, so the restriction is central to the method rather than a minor implementation convenience.

The authors also establish a hardness result for the unrestricted problem. They consider maximum agreement, which seeks a pattern whose classifications agree with the supplied designations as often as possible. For unbounded pattern size and an unbounded alphabet, the stated approximation barrier is:

```
770/767 − ε
```

Here, ε is any positive quantity in the theorem’s statement. Under the assumption P ≠ NP, the paper rules out a polynomial-time approximation algorithm with that factor for the specified maximum-agreement problem.

The result still holds under either of the structural restrictions described by the authors: maximum tree depth at most three, or maximum branching at most two. These are alternative restrictions in the theorem. They should not be combined into a stronger claim about a setting satisfying both unless that setting is separately established.

This theorem concerns maximum agreement under particular unrestricted conditions. It does not say that every bounded dataset is difficult, that exact mining is impossible in practice, or that the same approximation statement applies automatically to entropy and Gini optimization.

The proof is referred to a fuller technical report. The conference paper states the result and its significance but does not present the complete reduction. Its role here is to explain why a maximum-size restriction is theoretically meaningful.

#### Limits visible in the experimental setup

A careful reader should distinguish sample optimality from generalization. OPTT finds patterns that are best according to the supplied sample and objective. The experiments do not establish their predictive performance on unseen documents.

The movie patterns are particularly sensitive to this distinction. A certification associated with action entries in the selected collection may reflect how those entries were chosen, represented, or populated. The paper supplies coverage within that collection, not a universal relationship between movie category and certification.

The explicit genre pattern raises a related issue. Inspecting a field that directly expresses the target grouping can produce an excellent split without revealing a useful hidden regularity. Whether that is acceptable depends on the application, but statistical optimality alone cannot decide it.

The experimental data also limits the representation claim. Imdb entries were manually transformed into XML. The paper therefore demonstrates discovery on those trees; it does not separately evaluate a general process for turning arbitrary Web content into a suitable structural representation.

No repeated-run variation, uncertainty intervals, or broad cross-collection statistical comparison accompanies the timing table. The absolute measurements remain observations from the reported implementation and machine.

FREQT’s runtime is not an equal-objective baseline. A minimum-frequency condition can exclude the very patterns that optimized discovery is intended to recover. Its smaller runtime should therefore not be interpreted as evidence that it solves OPTT’s task more efficiently.

#### Limits of the pattern language and presentation

The method works with rooted ordered trees and exact node labels. Data with shared entities, cross-links, or genuinely graph-shaped relationships falls outside that representation unless transformed first. Such a transformation could alter what patterns mean.

Its matching relation also embodies specific choices: direct vertical edges, preserved sibling order, and possible omissions among siblings. An application requiring ancestor–descendant gaps, interchangeable child order, or semantic label similarity would need a different pattern definition and renewed correctness arguments.

The binary target designation is another boundary. The paper’s formulation concerns a supplied interesting subset and its complement. It does not directly evaluate richer target structures or explain how user interest should be elicited.

Finally, some formal presentation details require care. The “convexity” terminology conflicts with the usual naming of the displayed inequality and example functions. The weighted objective also encounters empty-group cases whose arithmetic conventions are not discussed in detail. These issues call for precise treatment in an implementation; they do not justify silently changing the method or claiming results the authors did not report.

### What came after

No later citing work is identified here with enough evidence to describe a subsequent extension or application. A specific account of who adopted OPTT, changed its occurrence representation, or improved its pruning would therefore go beyond the available record.

The relationships established within the paper are backward-looking. FREQT supplies the incremental tree-mining foundation. Bayardo’s enumeration approach provides a conceptual predecessor for canonical construction. Morishita and Sese supply the statistical pruning result, and Zaki’s independently developed tree miner is discussed as closely related work. None of these should be presented as a later consequence of OPTT.

The paper nonetheless leaves a clear set of questions for further investigation: whether stronger safe bounds can reduce search, how compact evidence should change under other matching relations, and how sample-optimal structures behave on unseen documents. These are implications of the method’s boundaries, not claims about later findings. Its lasting technical lesson is the connection between a carefully restricted pattern language, incremental evidence, and a statistical objective whose structure can make exact search substantially more selective.

## Cite

Cite as Kenji Abe, Shinji Kawasoe, Tatsuya Asai, Hiroki Arimura and Setsuo Arikawa. 2002. Optimized Substructure Discovery for Semi-structured Data. Lecture notes in computer science.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1007/3-540-45681-3_1](https://doi.org/10.1007/3-540-45681-3_1)

```bibtex
@inproceedings{abe2002optimized,
  title = {{Optimized Substructure Discovery for Semi-structured Data}},
  author = {Kenji Abe, Shinji Kawasoe, Tatsuya Asai, Hiroki Arimura and Setsuo Arikawa},
  booktitle = {Lecture notes in computer science},
  year = {2002},
  doi = {10.1007/3-540-45681-3\_1},
  url = {https://doi.org/10.1007/3-540-45681-3_1}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
