XStream
  1. XStream
  2. XSTR-282

PrioritizedList add method: O(n^2)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None

      Description

      1. This class uses a linked list which takes:

      O add best time
      O(n^2) add worse time

      Changed implementation to a TreeList:

      O(log) add guaranteed time

      2. Testcases are the ones already contained in XStream.

      3. Patched only the .java file

      1. patch.txt
        5 kB
        Guilherme Silveira

        People

        • Assignee:
          Unassigned
          Reporter:
          Guilherme Silveira
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: