Skip to main content

Questions tagged [intervals]

0 votes
1 answer
59 views

We have two sets A and B, where each element in A and B is a set of disjoint time intervals We have a set C which is a subset of the Minkowski sum A + B, meaning: For any a ∈ A and b ∈ B, if a + b ∈ ...
user184479's user avatar
1 vote
1 answer
73 views

Consider the following generalization of the interval scheduling problem: We have a set of groups, each group is specified by a set of disjoint time intervals. Unlike the group interval scheduling ...
user184479's user avatar
0 votes
1 answer
140 views

I'm working with multiple ordered lists, each containing tuples of the form (key, value), where each list is sorted in ascending order by ...
Isak's user avatar
  • 75
1 vote
1 answer
77 views

Lets say we have a list of intervals that also has a value associated with it. Assume that there is always atleast on interval active. The solution would be a timeline of non overlapping intervals ...
Isak's user avatar
  • 75
1 vote
0 answers
168 views

Over the years I've worked on a few applications that needed to model time intervals that are disjoint. For example, there's some kind of equipment available and time slots are booked out. For a data ...
grovesNL's user avatar
3 votes
1 answer
130 views

Given a set of points $\{p_1, p_2, \dots p_n\}$ and a set of intervals $I =\{[a_1, b_1], \dots [a_m, b_m]\}$, you are asked to find a set of subintervals $S = \{[c_1, d_1], \dots [c_m, d_m]\}$ where $[...
SimonNW's user avatar
  • 161
3 votes
3 answers
212 views

Given a sequence of intervals $I_1, I_2, \ldots$, is there an efficient way to detect whether some interval $I_i$ is completely contained in the union of the preceding intervals $I_1, \ldots, I_{i-1}$?...
MattDs17's user avatar
  • 163
2 votes
1 answer
446 views

There are two sets of intervals provided to us. target = {{11,13}, {7,10}, {0,3}, {6,6}} space = {{10,12}, {2,6}, {4,8}, {0,4}, {9,10}} I need to find the minimum number of intervals I can pick from ...
Viktor's user avatar
  • 23
0 votes
1 answer
84 views

Consider the scenario where we are given a collection of n integers. These integers are unordered and may include duplicates. Additionally, we have a set of m ranges, each defined by two integers ...
jack norton's user avatar
2 votes
2 answers
143 views

I'm looking for an efficient algorithm to merge a list of overlapping intervals (each of which has data associated) into non-overlapping intervals. In case two or more intervals overlap, the latter ...
Johannes Weiss's user avatar
1 vote
1 answer
351 views

This is algorithms and data structures assignment and I have been thinking 3 days about it. You are given N sections, placed on numeric axis. Numeric axis is divided by unit intervals. Each section in ...
guitarMan's user avatar
0 votes
0 answers
83 views

I have been trying to solve the following problem. I have n intervals each with a cost.I want to choose a subset of the intervals that maximizes the cost but with the following constraint. Each ...
SotirisD's user avatar
2 votes
0 answers
151 views

Given a graph with $n$ vertices and $m$ edges, $m \le {n \choose 2}$, we index the vertices from 1 to $n$, and denote every edge by $(l,r)$ where $1\le l < r \le n$. Find the maximum $k$ such that ...
quTANum's user avatar
  • 21
-2 votes
2 answers
164 views

You are given the number $m$ and $m$ intervals of the form $a_i, b_i, v_i$, where $a_i<=b_i$ and $v_i>0$ and also a number $n$ and an array $s$ of length $n$, where $s_i>0$. In one operation ...
John's user avatar
  • 1
0 votes
1 answer
89 views

Consider this problem: We want to mark some integer numbers such that we mark the minimum number of the numbers and satisfy some constraints. Each constraint wants that at least $k$ numbers in ...
Soroush Vahidi's user avatar

15 30 50 per page
1
2 3 4 5
9