[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: H1 in Project 3



At 12:56 AM 11/11/2001 -0700, Luis Tari wrote:
>Hi Rao,
>
>   I have a couple of questions on project 3 regarding to the heuristic
>functions. From the description of H1, it sounds like you are describing
>sum-based heuristic, as you wrote:
>"--Level-based heuristic function
>   H1: Heuristic function that computes the cost of a set as the sum of
>       the levels of the individual elements of the set"
>
>   H2 and H3 seem to be level-based heuristic functions with/without mutex
>from the description.


Summing levels can also be called sum heuristic.  so it s just a matter of 
nomenclature


>   This is minor. The real big problem that I'm having is that when I was
>implementing H1, I was trying to test your function as follows:
>(set-level-val-without-mutex '(arm-empty))

you have to send a _list_ of conditions to set-level, I think..

So you call  (set-level-val-without-mutuex '(  (arm-empty) )  )

and things should be fine...






>which I was expecting it to return 0, but it returns 10000. I ran the
>function after running (compute-pg 'class-problem). With this problem that
>I'm having, H1 is not computed correctly. Is there anything that I did wrong
>or misunderstand? Thanks in advance.
>
>Luis