Remaining changes Wolfgang Corcoran-Mathe (04 Sep 2020 17:12 UTC)
Re: Remaining changes John Cowan (05 Sep 2020 03:41 UTC)
(missing)
(missing)
(missing)
Fwd: Remaining changes Marc Nieper-Wißkirchen (06 Sep 2020 07:43 UTC)
Re: Remaining changes Marc Nieper-Wißkirchen (06 Sep 2020 09:33 UTC)
Re: Remaining changes Wolfgang Corcoran-Mathe (06 Sep 2020 17:24 UTC)
Re: Remaining changes Marc Nieper-Wißkirchen (06 Sep 2020 17:30 UTC)
Re: Remaining changes Wolfgang Corcoran-Mathe (06 Sep 2020 17:40 UTC)
Re: Remaining changes John Cowan (06 Sep 2020 20:04 UTC)
Re: Remaining changes Marc Nieper-Wißkirchen (06 Sep 2020 20:40 UTC)
Re: Remaining changes John Cowan (07 Sep 2020 00:03 UTC)
Re: Remaining changes Marc Nieper-Wißkirchen (07 Sep 2020 06:31 UTC)
Re: Remaining changes Wolfgang Corcoran-Mathe (07 Sep 2020 15:46 UTC)
Re: Remaining changes Wolfgang Corcoran-Mathe (07 Sep 2020 20:56 UTC)
Re: Remaining changes John Cowan (07 Sep 2020 21:16 UTC)
Re: Remaining changes Wolfgang Corcoran-Mathe (07 Sep 2020 21:57 UTC)
Re: Remaining changes Marc Nieper-Wißkirchen (08 Sep 2020 14:25 UTC)
Re: Remaining changes John Cowan (08 Sep 2020 15:26 UTC)
Fwd: Remaining changes John Cowan (05 Sep 2020 17:48 UTC)
Fwd: Remaining changes Marc Nieper-Wißkirchen (05 Sep 2020 12:59 UTC)
Re: Remaining changes Marc Nieper-Wißkirchen (05 Sep 2020 13:07 UTC)

Re: Remaining changes Wolfgang Corcoran-Mathe 07 Sep 2020 20:55 UTC

On 2020-09-07 11:44 -0400, Wolfgang Corcoran-Mathe wrote:
> On 2020-09-07 08:31 +0200, Marc Nieper-Wißkirchen wrote:
> > >> So, actually, procedures like range-every (that have to
> > >> inspect all ranges at least once) also need addition of O(k).
> > >
> > >
> > > But that's done in the proc argument, and running time there is not
> > > counted.  I've made the change, but it's easy to roll back if I'm correct.
> >
> > All the zillion ranges passed to range-every can be empty so proc is
> > never called. But range-length will have to be called on them. That's
> > why it needs at least O(k) time.
>
> Indeed.  A zillion empty ranges is a fast case for range-every, but
> we must still determine that they are all empty.

(Again, a slight oversimplification.  We need only determine that one
of the zillion ranges is empty to short-circuit.  In the worst case,
we still need to check all k ranges.)

--
Wolfgang Corcoran-Mathe  <xxxxxx@sigwinch.xyz>