Slidingwindow
Sliding window is a general concept used in computer science to process data in a contiguous window that moves along a sequence. The window is defined by left and right bounds and can be of fixed or variable size. As the window advances, elements enter and leave the window, enabling incremental computation without reprocessing the entire sequence. The approach is commonly implemented with two pointers and supporting data structures such as hash maps to track state.
In algorithm design, the sliding window technique is used to solve problems on arrays or strings efficiently.
Sliding window protocol is a data link layer or transport layer flow control mechanism used in reliable
Practical implementations must handle loss, errors, and timeouts, and may use timers, sequence numbers, and buffering.