wu :: forums
« wu :: forums - guessing what data structure could fit »

Welcome, Guest. Please Login or Register.
Apr 29th, 2024, 4:04am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: Icarus, ThudnBlunder, Eigenray, SMQ, towr, william wu, Grimbal)
   guessing what data structure could fit
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: guessing what data structure could fit  (Read 1127 times)
transgalactic
Newbie
*





   


Posts: 11
guessing what data structure could fit  
« on: Jan 18th, 2012, 11:44am »
Quote Quote Modify Modify

propose a data structure S which its operations
follows the following time complexity
n-is the number of member
BUILD(s) -builds the data structure S in O(n)
MIN(s)-return the minimal value of S in O(1)
DEL-MEDIAN(s) - deletes the median of S in O(lgn)
OS-MED7(S) -  return the (n/2+7) order statistics of S in O(1)
 
the DEL-MEDIAN time of lgn sugests that it has
caracteristics of black-red tree
 
 
MIN and OS-MED time  complexities  suggests that its part of hash table.
 
what structure is it?
 
 
 
 
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board