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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:25:20+00:00 2026-06-15T04:25:20+00:00

I am searching on the internet in order to find some algorithm that can

  • 0

I am searching on the internet in order to find some algorithm that can traverse a graph in parallel using 2 or n processes without one process stepping into a previously visited node of the other so I can speed up the total scanning task of the whole graph, but I can’t find anything. Is there any algorithm that can help me do such task in parallel? is it worth it?

Note :
n processes share the same memory of visited and tovisit nodes

thank you

  • 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-15T04:25:21+00:00Added an answer on June 15, 2026 at 4:25 am

    You can try the consumer-producer model for traversing the graph – but with some modifications from the pure model:

    • Read and write to the queue in blocks, rather then element at a time, also update the visited set in blocks. It will save you the synchronization time – which will be needed to be done less frequently.
    • When you do modify the queue (and visited set) – you should do some extra work to make sure you don’t add data that was already visited since the set was last checked.

    Note that with this approach – you are more then likely to search some vertices a few times – but you can bound it with the frequency the queue and visited set are updated.

    Will it worth it? It is hard to say in these things – it is dependent on a lot of things (graph structure, size, queue implementation, …).

    You should run a few tests and try to fine tune the parameter for “how often to update”, and check which is better empirically. You should use statistical tools (wilcoxon test is the de-facto standard for this usually) and determine if one is better then the other.

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

Sidebar

Related Questions

I have been searching the internet and can't find an example on how to
Firstly, let me say that I've been searching the Internet, rewriting scripts and I
I've been searching for a solution on the internet for this, and can not
I was searching the internet for some suggestions for thresholds for the following well-known
So I have been searching the internet for hours now and I can't figure
I searching the Internet for an Page or an Book that collects the characteristics
I've been searching the internet a lot for UML modeling tools that support version
After pulling my hair for some time and searching the internet, I came to
I'm searching on internet if any businesses developing projects using Java EE6 + GlassFish
I'm searching the internet for a while now, and it seems that currently there

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.