[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Sep 2 11:51:33 1993 
Subject:Insertion sort in Pop? 
From:Ruvan Weerasinghe 
Volume-ID:930902.02 

Hi,
	Does anyone have code for this - or what is the best way to do such a
sort from prolog? (My problem is that I have random numbers (say) coming in
'asynchronously' which I need to place in order so that I can 'pop' off the 
highest from the 'top' of the 'stack' at any time... while numbers still keep 
coming in).

Ruvan.
--
  ----------------------------------------------------------------------------
   <ruvan@clu.cf.ac.uk>			Computational Linguistics Unit, 
   Tel    : 0222 874000 ext. 5310	University of Wales College of Cardiff,
   Fax    : 0222 874293			Cardiff CF1 3EU, UK.