![]() |
|
#1
|
|||
|
|||
Dijkstra's algorithm: segmentation faulthi i ve just implemented dijkstra's algorithm.... used queue... for space constraints i used maps.... but stll getting segmentation fault... can u help
CPP / C++ / C Code:
Quote:
plz help Last edited by LuciWiz : 23-Jan-2009 at 09:52.
Reason: Please insert your C++ code between [cpp] & [/cpp] tags
|
|||
|
#2
|
||||
|
||||
Re: Dijkstra's algorithm: segmentation faultSince you obviously did not read the guidelines for posting code, go back and read them and then rewrite your post.
Most likely you are chasing an uninitialized pointer or trying to dereference a null pointer. MxB |
|
#3
|
|||
|
|||
Re: Dijkstra's algorithm: segmentation faultthanks mexicanBob for reply
Quote:
well i ve used code tags and have explained about the prob..the problem must be in linnes of code...but i had to post the entire code cos i am not sure where the error is....but still i ve modidied the graph construction part Quote:
can u elabrate on thsi please.... that ll solve the problem..i am stuck with it for a long long time more over am not able to edit the first post...the option is disabled..... |
|
#4
|
|||
|
|||
Re: Dijkstra's algorithm: segmentation faulti have done the following changes in the build function
at the start of build function i initialised NULL..(first i dint) CPP / C++ / C Code:
i will be greatful if u help me with it. thanks Last edited by admin : 25-Jan-2009 at 02:12.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|
#5
|
|||
|
|||
Re: Dijkstra's algorithm: segmentation faultis my way of graph construction and traversals not the ebst ones...its exceeding the time limit....
can i better it anyways... please help |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I have a segmentation fault in my project | takachi | C++ Forum | 6 | 09-Mar-2008 22:30 |
| Find the Segmentation Fault | jlwelch | C Programming Language | 3 | 10-Oct-2006 10:16 |
| My Bane - The Segmentation Fault | DCOM | C Programming Language | 6 | 08-Feb-2005 22:58 |
| segmentation fault in c++ | rushman8282 | C++ Forum | 2 | 26-Jan-2005 03:38 |
| child pid xxx exit signal Segmentation fault (11) | bezak | Apache Web Server Forum | 1 | 24-Nov-2003 09:18 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The