As a follow up question, is there a way to check if a particular key is
present in the priority queue? That is, to check if `HeapEntry` with k=5 is
there in a heap..? Does julia has any wildcards..?
On Saturday, October 1, 2016 at 10:47:48 PM UTC+5:30, Athul George Appadan
wrote:
>
> I am tryi
Thanks a lot..
On Monday, October 3, 2016 at 2:41:13 AM UTC+5:30, Steven G. Johnson wrote:
>
>
>
> On Saturday, October 1, 2016 at 1:17:48 PM UTC-4, Athul George Appadan
> wrote:
>>
>> I am trying to find a way to check the membership of a user defined type
>> object in a heap. This is the code
On Saturday, October 1, 2016 at 1:17:48 PM UTC-4, Athul George Appadan
wrote:
>
> I am trying to find a way to check the membership of a user defined type
> object in a heap. This is the code I have written:
>
> type HeapEntry
> k::Int
> dist::Float64
> end
>
> isless(e1::HeapEntry, e2: