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

📄 http:^^www.cs.washington.edu^education^courses^473^assignment2.html

📁 This data set contains WWW-pages collected from computer science departments of various universities
💻 HTML
字号:
Date: Mon, 02 Dec 1996 16:00:34 GMTServer: NCSA/1.4.2Content-type: text/html <html><TITLE>CSE 473 Assignment 2</TITLE><body><H1>CSE 473 Assignment 2<br></h1> <p>Due Friday, April 5 in class.<p><P><H2>Reading</H2>Finish reading Chapter 2.  Also read Dalton's brief<a href="CLOS-guide-Dalton.txt"><b>guide to CLOS</b></a>.<p>Here is the Lisp code for the<a href="closdemo.lsp">CLOS demonstration</a>that I gave in class on Friday, April 5.<H2>Part 1: A Sequence Predictor</H2>Do exercise 21 at the end of Chapter 2.<p>After you get the function NEXT to work asdescribed in the book, add one of the followingadditional capabilities:<OL><LI> recognition of sequences that are the resultsof interleaving pairs of arithmetic or geometricsequences.<LI> recognition of periodic sequences (sequenceswhere an arbitrary finite sequence is repeatedover and over).<LI> recognition of sequences that are generatedby counting modulo n in increments of m.For example if m = 5 and n = 12, then the sequencegoes 0, 5, 10, 3, 8, 1, 6, 11, ...</OL><H2>Part 2: An S-expression Diagrammer.</H2>Using the Common Graphics capabilities of AllegroCommon Lisp for Windows, write a functionDRAW-LIST which takes as its argument an S-expressionwhich is a list representing a tree and draws thetree on a new window.  One way of doing this is bysetting up a 2-D array and assigning each nodeto an appropriate row and column, and then plottingthe node labels and connecting nodes and their children with lines.(To see examples of the use of Common Graphics, go into Lisp andload some of the examples that are there in the Allegro subdirectory.)<p>For extra credit, make the tree look nice.For example, if the tree has symmetrical list structure,then the plot should look symmetrical, too, and thisshould hold true for any subtree as well.<HR>As per Jeremy's request in class on Wednesday, April 3,please turn in your solution to the second part of this assignmenton a PC diskette with your name on the label.<HR><address>tanimoto@cs.washington.edu</address></html>

⌨️ 快捷键说明

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