Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7900249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:55:20+00:00 2026-06-03T08:55:20+00:00

In Algorithm Design Manual , it says Are you testing whether two trees are

  • 0

In Algorithm Design Manual, it says

Are you testing whether two trees are isomorphic? – Faster algorithms exist for certain special cases of graph isomorphism, such as trees and planar graphs. Perhaps the most important case is detecting isomorphisms among trees, a problem that arises in language pattern matching and parsing applications. A parse tree is often used to describe the structure of a text; two parse trees will be isomorphic if the underlying pair of texts have the same structure.

I just wish someone please give me an example that how to use Tree Isomorphism to solve language pattern matching problem. i.e., how can I map language pattern matching to a tree isomorphism problem?

Normally, how do I construct a string or text as a tree and compare their identities?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:55:22+00:00Added an answer on June 3, 2026 at 8:55 am

    Using English as an example, the idea is that some English sentences can be represented by the following parse trees:

            SENTENCE               SENTENCE
           /        \             /        \
      PROPER NOUN  VERB      COMMON NOUN  VERB
          /                    /    \
         NAME                ARTICLE NOUN
    

    The English phrase “The dog barks.” can then be parsed as follows

    ARTICLE    NOUN      VERB
     /          /         /
    The       dog       barks
    
        COMMON NOUN
         /      \
    ARTICLE    NOUN      VERB
     /          /         /
    The       dog       barks
    
    
                SENTENCE
                 /     \
        COMMON NOUN     \
         /      \        \
    ARTICLE    NOUN      VERB
     /          /         /
    The       dog       barks
    

    Another sentence with the same structure is “A leaf falls.” Its parse tree would look to have the same shape, which means that the two parse trees would be isomorphic. That is, they have the same logical structure as a sentence even though the meaning is different.

                SENTENCE
                 /     \
        COMMON NOUN     \
         /      \        \
    ARTICLE    NOUN      VERB
     /          /         /
    A         leaf      falls
    

    Both parse trees are also isomorphic to the general pattern, also represented as a tree, if you ignore the actual physical words.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Algorithm Design Manual says: Most graph algorithms do not adapt so easily to
When talking about computing network flows , the Algorithm Design Manual says: Traditional network
There are two related excises in The Algorithm Design Manual . Basically, I know
In Algorithm Design Manual , there is such an excise 4-26 Consider the problem
In Algorithm Design Manual , page 178 describes some properties of Graph, and one
The Algorithm Design Manual describes BFS and DFS quite well. The code for dfs
Here is a excise from The book Algorithm Design Manual . In the bin-packing
I've been going through Skiena's excellent The Algorithm Design Manual and got hung up
This Code is a code I built from the algorithm design manual book but
I am reading the Algorithm Design Manual Second Edition and this is from an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.