t

algo.data.fenwick

GroupFenwickTreeOps

trait GroupFenwickTreeOps[K, V, +Collection <: GroupFenwickTreeOps[K, V, Collection]] extends MonoidFenwickTreeOps[K, V, Collection]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GroupFenwickTreeOps
  2. MonoidFenwickTreeOps
  3. SemigroupFenwickTreeOps
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def apply(index: K): V

    Returns the element at the given index

    Returns the element at the given index

    Exceptions thrown

    java.lang.IndexOutOfBoundsException if index is less than zero or greater than or equal to size

    Note

    Time Complexity: O(log N)

  2. abstract def combined(index: K, value: V): Collection

    Updates the element at the given index to the given value

    Updates the element at the given index to the given value

    Definition Classes
    SemigroupFenwickTreeOps
    Exceptions thrown

    java.lang.IndexOutOfBoundsException if index is less than zero or greater than or equal to size

    Note

    Time Complexity: O(log N)

  3. abstract def foldRange(from: K, until: K): V

    Folds elements in the given range [from, until)

    Folds elements in the given range [from, until)

    Exceptions thrown

    • if from is less than zero or greater than or equal to size
    • if until is less than zero or greater than size
    Note

    Time Complexity: O(log N)

  4. abstract def foldTo(to: K): V

    Folds elements in the given range [zero, to]

    Folds elements in the given range [zero, to]

    Definition Classes
    MonoidFenwickTreeOps
    Exceptions thrown

    java.lang.IndexOutOfBoundsException if to is less than zero or greater than or equal to size

    Note

    Time Complexity: O(log N)

  5. abstract def foldUntil(until: K): V

    Folds elements in the given range [zero, until)

    Folds elements in the given range [zero, until)

    Definition Classes
    MonoidFenwickTreeOps
    Exceptions thrown

    java.lang.IndexOutOfBoundsException if until is less than zero or greater than size

    Note

    Time Complexity: O(log N)

  6. implicit abstract def group: CommutativeGroup[V]
  7. implicit abstract def monoid: CommutativeMonoid[V]
    Definition Classes
    MonoidFenwickTreeOps
  8. abstract def reduceTo(to: K): V

    Reduces elements in the given range [zero, to]

    Reduces elements in the given range [zero, to]

    Definition Classes
    SemigroupFenwickTreeOps
    Exceptions thrown

    java.lang.IndexOutOfBoundsException if to is less than zero or greater than or equal to size

    Note

    Time Complexity: O(log N)

  9. abstract def reduceUntil(until: K): V

    Reduces elements in the given range [zero, until)

    Reduces elements in the given range [zero, until)

    Definition Classes
    SemigroupFenwickTreeOps
    Exceptions thrown

    java.lang.IndexOutOfBoundsException if until is less than zero or greater than size

    Note

    Time Complexity: O(log N)

  10. implicit abstract def semigroup: CommutativeSemigroup[V]
    Definition Classes
    SemigroupFenwickTreeOps
  11. abstract def size: K

    Returns the size of this tree

    Returns the size of this tree

    Definition Classes
    SemigroupFenwickTreeOps
    Note

    Time Complexity: O(1)

  12. abstract def updated(index: K, value: V): Collection

    Updates the element at the given index to the given value

    Updates the element at the given index to the given value

    Exceptions thrown

    java.lang.IndexOutOfBoundsException if index is less than zero or greater than or equal to size

    Note

    Time Complexity: O(log N)

  13. abstract def zero: K

    Returns the zero

    Returns the zero

    Definition Classes
    SemigroupFenwickTreeOps
    Note

    Time Complexity: O(1)

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from MonoidFenwickTreeOps[K, V, Collection]

Inherited from SemigroupFenwickTreeOps[K, V, Collection]

Inherited from AnyRef

Inherited from Any

Ungrouped