Search:

Type: Posts; User: assertion

Search: Search took 0.00 seconds.

  1. Replies
    29
    Views
    11,235

    One question, if I may: why is it be illegal?

    One question, if I may: why is it be illegal?
  2. Replies
    4
    Views
    1,221

    What kind of job interview are you going to that...

    What kind of job interview are you going to that you worry about linked lists?!?
    Anyways, in C++, the standard says that for any container you have access to the end() in amortized constant time. So...
  3. Replies
    1
    Views
    1,090

    So, what is your question?

    So, what is your question?
  4. Replies
    5
    Views
    2,702

    (a) What is a "random route"? (NB: mathematical...

    (a) What is a "random route"? (NB: mathematical descriptions are not appropriately explained by example. What are the conditions you can/want to/have to work with? Do you work with all 2^n sub-tour...
  5. Replies
    1
    Views
    994

    There is no standard (as in ISO 14882) way to do...

    There is no standard (as in ISO 14882) way to do it in C++. It is a operating system related question. So: what operating system do you use? In Linux&BSD a system("netstat") will be the quick&dirty...
  6. Replies
    7
    Views
    1,347

    A self-defined operator most likely won't improve...

    A self-defined operator most likely won't improve efficiency, on the contrary: unnecessary assignments can be optimized away with compiler-generated operator=, but since the compiler doesn't know...
  7. Replies
    29
    Views
    11,235

    That's right. But: std::vector...

    That's right. But:


    std::vector<std::string> foo(std::istream_iterator<std::string>(std::cin),
    std::istream_iterator<std::string>());

    does what you think it does (calling the range...
  8. Replies
    6
    Views
    6,520

    Assuming that the program runs under the same...

    Assuming that the program runs under the same privileges as usual for that user, the possible "Read Mail Really Fast"-command wouldn't be a new security problem. And depending on what you want to do,...
  9. Replies
    19
    Views
    29,328

    Unfortunately, Wikipedia disagrees with...

    Unfortunately, Wikipedia disagrees with mathematics and computer science mote often than not. You wouldn't believe how often I find myself in situations like that:
    "The given graph has this-and-that...
  10. Replies
    29
    Views
    11,235

    A vector will take about as much space as an...

    A vector will take about as much space as an array in C (well, up to 1.5 times as much if you fill it via push_back and don't reserve() before that). So if your lists of phrases are alltogether 30MB,...
  11. Replies
    3
    Views
    2,926

    What do you want to do? Do you only require a...

    What do you want to do? Do you only require a unique id, do you require the current time to be part of it, if so, are the timestamps unique, how exact has the time to be, will it have to be...
  12. Replies
    19
    Views
    29,328

    [Really off-topic - definitions of paths and...

    [Really off-topic - definitions of paths and walks]
    A walk is a path in which self-intersections are allowed, a path does not have self-intersections. At least that is the definition in...
  13. Replies
    19
    Views
    29,328

    [off topic: minimal path length in an arbitrary...

    [off topic: minimal path length in an arbitrary graph is NP-complete]
    (a) we define a path to have no self-intersections. This way, a minimal length path is defined.
    (b) Containment in NP is...
  14. Replies
    19
    Views
    29,328

    Well, Dijkstra's Algorithm only works for...

    Well, Dijkstra's Algorithm only works for Digraphs with positive weights, whereas Warshall's Algorithm finds all shortest paths for a Digraph with conservative weights, rather like Bellman-Ford for...
  15. Replies
    6
    Views
    2,586

    I thought you might have access via a...

    I thought you might have access via a university/library.

    Anyways, how would sorting with a relaxed heap be different from sorting with another type of heap? You get your min element and remove it...
  16. Replies
    3
    Views
    1,487

    Thanks for your fast replies. I'll have a look at...

    Thanks for your fast replies. I'll have a look at Tiny xml.
    I don't really need xml, but I like the format for its extensibility and readability (plus, it is known by about everyone dealing with...
  17. Replies
    6
    Views
    2,586

    In a (Min) "weak" (or "relaxed") heap, only the...

    In a (Min) "weak" (or "relaxed") heap, only the right child of each node is guaranteed to have a greater key than the parent node, and the root has no left child (thus, the root is the max element)....
  18. Replies
    3
    Views
    1,487

    libxml++ memory usage

    Hello,
    while opening a ~50MB file, libxml++ used ~1.5GB RAM, which I find somewhat excessive. Is this an error in my usage (i.e., did I forget to set some hidden "don't waste memory"-flag?) or is...
Results 1 to 18 of 19