home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / function / 953 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.6 KB

  1. Path: sparky!uunet!mcsun!uknet!harrier.ukc.ac.uk!owl.ukc.ac.uk!dat
  2. From: dat@ukc.ac.uk (D.A.Turner)
  3. Newsgroups: comp.lang.functional
  4. Subject: Re: algorithmic efficiency and lazy languages
  5. Message-ID: <502@owl.ukc.ac.uk>
  6. Date: 24 Jul 92 14:36:27 GMT
  7. References: <DTARDITI.92Jul21023549@DESERT.FOX.CS.CMU.EDU> <501@owl.ukc.ac.uk> <boehm.711912209@siria>
  8. Reply-To: dat@ukc.ac.uk (D.A.Turner)
  9. Distribution: comp
  10. Organization: Computing Lab, University of Kent at Canterbury, UK.
  11. Lines: 27
  12.  
  13. In a previous posting I wrote:
  14. > There  is  no  special  difficulty  in
  15. >reasoning   about  the  *time*  complexity  of  programs  written  in  a
  16. >non-strict  functional  language.   One  can  derive  from  the  program
  17. >equations   for  functions  fi  say,  similar  equations  for  Tfi,  the
  18. >time-to-execute of function fi.
  19.  
  20. To which boehm@parc.xerox.com (Hans Boehm) writes:
  21. >It seems to me that this is insufficient.  It basically tells us that it's
  22. >possible to write accurate profilers.
  23.  
  24. Sorry, I should have been more explicit.
  25.  
  26. I meant that you  could  often  *solve*  the  equations  (making  enough
  27. simplifying  assumptions,  as  one  always does in asymptotic complexity
  28. analysis) to arrive at a formula for the asymptotic complexity  of  each
  29. function  of  interest.   As  mentioned,  see  chapter 6 of B+W for some
  30. examples.
  31.  
  32.     -------------------
  33.  
  34. To add a further note on why space complexity is much less tractable -
  35. it is RESIDENCY we are interested in, typically, rather than just the
  36. number of times `cons' gets called, which is clearly related to the
  37. time analysis, as has already been commented.
  38.  
  39. David Turner
  40.