Graph problem time limit

This is a discussion on Graph problem time limit within the C++ Programming forums, part of the General Programming Boards category; hi... i tried solving a few graph problems in a programming site all of them exceeding the required time limit..(though ...

  1. #1
    dpp
    dpp is offline
    Registered User
    Join Date
    Jan 2009
    Posts
    197

    Graph problem time limit

    hi...
    i tried solving a few graph problems in a programming site
    all of them exceeding the required time limit..(though i used standrd algotithms)
    may be cos of the the time for graph construction...
    i implemented adjacency linked list using structs and pointers....

    how will i improvise

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    Dunno, if you don't post your code, we can't tell you how to improve it.
    And no, this isn't an invite for you to PM me your code either.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    No, instead I got a PM that I only just answered to with a "I do not solve problems via PM".

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  2. Sending an email in C program
    By Moony in forum C Programming
    Replies: 28
    Last Post: 10-19-2006, 10:42 AM
  3. Send/receive at the same time problem
    By nlight in forum C Programming
    Replies: 3
    Last Post: 05-12-2005, 06:06 PM
  4. The space time continueimnms mm... (rant)
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 32
    Last Post: 06-27-2004, 01:21 PM
  5. Problem with time on the board, or is it just me?
    By biosninja in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 10-23-2002, 05:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21