Monotone threshold activation Created 2026-10-25 Updated 2026-10-31
In a finite graph, start with an active vertex set and thresholds . An inactive vertex becomes active once sufficiently many neighbours are active, and activated vertices remain active. Add eligible vertices until no more can be added. If is any threshold-closed set containing , induction shows every activated vertex lies in . The terminal active set is itself closed, so it is the least such closure and is independent of the eligible-vertex processing order.
For integer thresholds, compute active-neighbour counts and keep a work queue of vertices newly reaching their thresholds. Each vertex is queued once and each edge is inspected a constant number of times, giving running time. Strict-majority activation has , so an isolated inactive vertex never qualifies. A maximum priority queue of activation margins is an alternative implementation.
A maximum priority queue is an abstract data type holding items with comparable priority keys and giving access to a greatest-key item. Equal priorities may occur; any one of the tied maximum items can be returned unless a tie rule is specified.
emptyor initialization creates a queue with no items;isEmptyandsizeinspect its occupancy.insert(item, key)adds an item with its priority.maximum()returns a greatest-priority item without removing it.extractMax()returns and removes a greatest-priority item.- When mutable priorities are supported,
increaseKey(handle, newKey)raises an existing item's priority; the handle identifies its stored location.
A maximum priority queue stores keyed entries and supports insertion, inspection and removal of an entry with greatest key, and key increases. A max-heap gives the following running times, with the size/capacity cost of the backing array accounted for separately:
maximum: return the root key in time.insert: append at the next available leaf, then use sift up until the heap order holds, in time.extractMaximum: save the root, replace it by the last entry, reduce the size, and use sift down, in time.increaseKey(i,k): reject ; otherwise set the new key and use sift up, in time.isEmptyandsize: inspect the stored size in time; construct a queue from keys by bottom-up heap construction in time.