Note Representation 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project Step #1, due Friday 8 November
Re: News New Test Cases! (Benedict Singer)
Re: Question question about (ratintvl? '(1 . 2)) preselector test case (Ivan Beschastnikh)
Date: 2002, Nov 08
From: Benedict Singer <singerb@uchicago.edu>

Technically, I suppose, there's no reason you couldn't represent ratintvls as (a . b) - however, I think it was assumed (or I read it somewhere) that they would be lists like (1 3/2) rather than (1 . 3/2). Now, I don't see any reason why you couldn't use the pair rather than list structure, and in that case that test case should be true, and the other ones should be changed accordingly. Make sure you point that out if you submit code that does it that way - you may want to include your own test cases for the functions that work directly with ratintvls

Using the other representation should only change a few functions - most of the functions use ratintvl? max/min_ratintvl to work with ratintvls rather than directly using them. So I think it's really up to you which way to do it.


Messages

1. Warning Actually... by Benedict Singer, 2002, Nov 08
(_ Note Stay with lists by Mark Kittisopikul, 2002, Nov 08

to: "Representation"