Inferring a tree from walks

Osamu Maruyama, Satoru Miyano

Research output: Contribution to journalArticlepeer-review

8 Citations (Scopus)


A walk on an undirected edge-colored graph G is a path containing all edges of G. The tree inference from a walk is, given a string x of colors, finding the smallest tree that realizes a walk whose sequence of edge-colors coincides with x. We prove that the problem is solvable in O(n) time, where n is the length of a given string. We furthermore consider the problem of inferring a tree from a finite number of partial walks, where a partial walk on G is a path in G. We show that the problem turns to be NP-complete even if the number of colors is restricted to 3. It is also shown that the problem of inferring a linear chain from partial walks is NP-complete, while the linear chain inference from a single walk is known to be solvable in polynomial time.

Original languageEnglish
Pages (from-to)289-300
Number of pages12
JournalTheoretical Computer Science
Issue number1-2
Publication statusPublished - Jul 15 1996

All Science Journal Classification (ASJC) codes

  • Theoretical Computer Science
  • General Computer Science


Dive into the research topics of 'Inferring a tree from walks'. Together they form a unique fingerprint.

Cite this