Files
mercury/tests/hard_coded/rtree_test.exp
Julien Fischer 07a4202df3 Add Greg's R-Tree implementation (+ cleanups by me) to the standard library.
Estimated hours taken: unknown by gjd (+ about 5 by me)
Branches: main (and maybe release)

Add Greg's R-Tree implementation (+ cleanups by me) to the standard library.
There are a couple more things that need to be done, primarily cleanups and
documentation of the insertion and deletion algorithms, so until that's done
this won't be added to the library reference manual.

library/rtree.m:
	New file.  This module provides an R-tree ADT, plus a typeclass
	for defining regions for use with that ADT.

library/library.m:
	Include the new module in the list of library modules.

doc/Mmakefile:
	For the time being don't include the rtree module in the library
	documentation.

tests/hard_coded/Mmakefile:
tests/hard_coded/rtree_test.m:
tests/hard_coded/rtree_test.exp:
	Test case for the new module.
2006-04-05 07:07:46 +00:00

16 lines
464 B
Plaintext

Integers from 33 to 66:
[33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66]
Integers from 22 to 22:
[22]
Primes from 0 to 100:
[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]
First prime from 0 to 100:
2
All odds deleted, remaining integers from 33 to 66:
[34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66]