⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 splaytree-sig.sml

📁 这是我们参加06年全国开源软件的竞赛作品
💻 SML
字号:
(* splaytree-sig.sml * * COPYRIGHT (c) 1993 by AT&T Bell Laboratories.  See COPYRIGHT file for details. * * Signature for a splay tree data structure. * *)signature SPLAY_TREE =   sig    datatype 'a splay =       SplayObj of {        value : 'a,        right : 'a splay,        left : 'a splay      }    | SplayNil    val splay : (('a -> order) * 'a splay) -> (order * 'a splay)      (* (r,tree') = splay (cmp,tree)        * where tree' is tree adjusted using the comparison function cmp       * and, if tree' = SplayObj{value,...}, r = cmp value.       * tree' = SplayNil iff tree = SplayNil, in which case r is undefined.       *)    val join : 'a splay * 'a splay -> 'a splay      (* join(t,t') returns a new splay tree formed of t and t'       *)  end (* SPLAY_TREE *)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -