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

  • Home
  • SEARCH
  • 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 9083919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:53:06+00:00 2026-06-16T20:53:06+00:00

Most articles about Dijkstra algorithm only focus on which data structure should be used

  • 0

Most articles about Dijkstra algorithm only focus on which data structure should be used to perform the “relaxing” of nodes.

I’m going to use a min-heap which runs on O(m log(n)) I believe.

My real question is what data structure should I used to store the adjacent nodes of each node?
I’m thinking about using an adjacency list because I can find all adjacent nodes on u in O(deg(u)), is this the fastest method?

How will that change the running time of the algorithm?

  • 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-16T20:53:07+00:00Added an answer on June 16, 2026 at 8:53 pm

    With Dijkstra’s algorithm you just loop through the list of neighbours of a node once, so a simple array or linked list storing the adjacent nodes (or simply their indices in a global list) at each node (as in an adjacency list) would be sufficient.

    How will that change the running time of the algorithm? – in comparison to what? I’m pretty sure the algorithm complexity assumes an adjacency list implementation. The running time is O(edges + vertices * log(vertices)).

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

Sidebar

Related Questions

I've read some articles about Android NDK. Most of them claim Native C is
I am trying to figure out which is most appropriate. From the articles I
I'm curious about the architecture in ASP.NET MVC. How I should get data from
I've just started to learn about Asp.Net 3.5 compilation model, but most articles mostly
I read some articles about how to use log4j. Most of them give below
I've been reading some articles about HTML, XHTML, etc. In most of them (i.e.
I have heard lot about Javascript: Module Pattern . But most of those articles
In most tutorials, documentation, articles etc. about RESTful I come across a few of
I am often facing design patterns, and I find most articles explaining them a
Most of javascript and web development books/articles says that you must put CSS in

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.