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 7795853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:11:25+00:00 2026-06-01T23:11:25+00:00

In Graph, there is a triangular strip problem. Basically, we have a set of

  • 0

In Graph, there is a triangular strip problem. Basically, we have a set of adjacent triangles and we want to consider each triangle as a new vertex and there will be an edge between two new vertices if the two triangles behind them have an edge in common.

My question here is about reading each triangle and construct the new strip graph for them.

For example, we have these triangles (A, B and C):

A – 0, 1, 3

B – 1, 2, 3

C – 2, 3, 4

so A and B have a common edge and so do B and C. the new strip go from A to B and then to C.

Ok. I think one of the key things here is that each time when you read a new triangle, we want to know which triangles have common edges with the new one.

A stupid way is that we just scan all old triangles and compare their three vertices with the new one’s vertices, and if two vertices match, then there is a adjacency.

A better way (described in The Algorithm Design Manual) is that each time when we create a list for each triangle vertex. That list contains all triangles that pass through the vertex. for example, for the triangles above, vertex 0 has the list of {A}, vertex 1 has the list of {A, B}, etc. So when a new triangle comes, we just need to check 3 vertices and try to find which old triangles having two common vertices with the new one.

Here comes some questions:

  1. Is the better way linear? How to define the “linear” for this kind of reading and constructing graph? For example, in the better way, a new triangle need to go through 3 lists of old triangles. Is this linear enough? I thought it is linear because at most it just read all old triangles. But if my thought is true, then the stupid way is also linear, right? so I guess I may be wrong, but very confused.

  2. Will there be a even better way? This is asked by Algorithm Design Manual as an excise and that excise asks for a pure linear algorithm even in worst case.

My solution for a even better way is that instead of build a list for each vertex, I build a list for each edge. A vertex can have many triangles passing through, but with an edge, there will be at most two triangles passing assuming that all triangles’ edges are not crossing each other and at most merge (in common).

Then each edge has a list of at most two items. and for a newly coming triangle, it need to check at most 3 edges. I think it is better than the better way above.

Am I right? or Is my better better way a pure best linear solution?

  • 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-01T23:11:26+00:00Added an answer on June 1, 2026 at 11:11 pm

    Is the better way linear?

    No, it is not. As you say, yes there will be three lists to examine which is a much more smaller space than the whole old triangles as the Stupid Way does, but the length of these lists are growing, again linearly as the number of triangles examined grows. In the worst case, the better way has the same complexity as the stupid way which is polynomial (the case where all triangles share a vertex)

    A – 0, 1, 2

    B – 0, 2, 3

    C – 0, 3, 4

    D – 0, 4, 5

    …

    About your solution to this problem, you are right, yours is a linear one assuming fetching an edge from the previously created edges is done in constant time (a hashtable like structure is required, not a list).

    Moreover, you can improve yours as just remembering the edges that have been added to the list (hashtable?) once, and removing those that are encountered twice (since it is assumed that an edge can only be shared between two triangles)

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

Sidebar

Related Questions

is there a way to have the cobertura test coverage graph be shown on
I have an acyclic directed graph. I would like to assign levels to each
Is there interfaces dependency graph for IWebBrowser2 component? I just want to make it
Let us say I have the following graph plotted using ggplot: Is there anyway
Is there any Graph Builder for GStreamer? So to say you build graph you
Is there a Box Plot graph, or box and whisker graph available for Reporting
Is there an Open Source Free Graph Control for Windows Forms .NET 2.0?
There is a directed graph (not necessarily connected) of which one or more nodes
Is there a free/open source BAR GRAPH (2d) component or sample file for Flash
Is there an established algorithm for finding redundant edges in a graph? For example,

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.