サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
Wikipedia
norvig.com
Why is everyone in such a rush? Walk into any bookstore, and you'll see how to Teach Yourself Java in 24 Hours alongside endless variations offering to teach C, SQL, Ruby, Algorithms, and so on in a few days or hours. The Amazon advanced search for [title: teach, yourself, hours, since: 2000 and found 512 such books. Of the top ten, nine are programming books (the other is about bookkeeping). Simi
This page has two purposes: to describe how to implement computer language interpreters in general, and in particular to build an interpreter for most of the Scheme dialect of Lisp using Python 3 as the implementation language. I call my language and interpreter Lispy (lis.py). Years ago, I showed how to write a semi-practical Scheme interpreter Java and in in Common Lisp). This time around the go
by Peter Norvig Note: This page is the original 2006 essay; an updated Python 3 Jupyter notebook is available here and should probably be read instead of this page. In this essay I tackle the problem of solving every Sudoku puzzle. It turns out to be quite easy (about one page of code for the main idea and two pages for embellishments) using two ideas: constraint propagation and search. Sudoku Not
List of IPython (Jupyter) Notebooks by Peter Norvig Here are some notebooks I have made. You can click on a notebook title to view it in the browser, or on '(download)' to get a copy that you can run and modify on your computer (assuming you have Jupyter installed). Logic and Number Puzzles Advent of Code 2016 (download) Puzzle site with a coding puzze each day for Advent 2016 Translating English
English Letter Frequency Counts: Mayzner Revisited or ETAOIN SRHLDCU Introduction On December 17th 2012, I got a nice letter from Mark Mayzner, a retired 85-year-old researcher who studied the frequency of letter combinations in English words in the early 1960s. His 1965 publication has been cited in hundreds of articles. Mayzner describes his work: I culled a corpus of 20,000 words from a variety
(... and indoor action photography in general) Parents at my daughter's dance study asked for advice on photographing dancers. This page reviews my path from knowing nothing about photography to getting some decent results. I hope it can help you as well. 1: Initial Disappointment The typical scenario: Your kid gets a role in a dance performance, you proudly snap some photos with your fancy new co
The Java IAQ: Infrequently Answered Questions by Peter Norvig Q: What is an Infrequently Answered Question? A question is infrequently answered either because few people know the answer or because it is about an obscure, subtle point (but a point that may be crucial to you). I thought I had invented the term, but it also shows up at the very informative About.com Urban Legends site. There are lots
36 Some people might prefer A, some might prefer B, and if you are slow at doing multiplication or addition you might prefer C. Why? All three explanations describe exactly the same theory — the same function from n to h, over the entire domain of possible values of n (as long as there are no more than 9 supreme court justices). Thus we could prefer A (or B) over C only for reasons other than the
This directory contains code and data to accompany the chapter Natural Language Corpus Data from the book Beautiful Data (Segaran and Hammerbacher, 2009). If you like this you may also like: How to Write a Spelling Corrector. Data files are derived from the Google Web Trillion Word Corpus, as described by Thorsten Brants and Alex Franz, and distributed by the Linguistic Data Consortium. Code copyr
In a previous essay I showed how to write a simple Lisp interpreter in 90 lines of Python: lis.py. In this essay I make the implementation, lispy.py, three times more complicated, but more complete. Each section handles an addition. (1) New data types: string, boolean, complex, port Adding a new data type to Lispy has three parts: the internal representation of the data, the procedures that operat
Q: What is an Infrequently Answered Question? A question is infrequently answered either because few people know the answer or because it concerns an obscure, subtle point (but a point that may be crucial to you). I thought I had invented the term for my Java IAQ, but it also shows up at the very informative About.com Urban Legends site. There are lots of Python FAQs around, but this is the only P
If you can't hear me, it's because I'm in parentheses. - Steven Wright October 1997: It has been six years since I finished Paradigms of AI Programming (or PAIP), and now seems like a good time to look back at how Lisp and AI programming have changed. Update: April 2002: It has now been over ten years, so I've updated this page. Is Lisp Still Unique? Or at Least Different? In 1991 Lisp offered a c
This is a brief introduction to Python for Lisp programmers. (Although it wasn't my intent, Python programers have told me this page has helped them learn Lisp.) Basically, Python can be seen as a dialect of Lisp with "traditional" syntax (what Lisp people call "infix" or "m-lisp" syntax). One message on comp.lang.python said "I never understood why LISP was a good idea until I started playing wit
This page is the index for the Lisp source code files for the book Paradigms of Artificial Intelligence Programming. The code is offered as open source freeware under this license. You can browse all the files in this directory. Installation Instructions Download the file paip.zip and unzip it. You must have a lisp compiler/interpreter. To test all the code, start lisp and do the following at the
Code for Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp
Warning Signs in Experimental Design and Interpretation When an experimental study states "The group with treatment X had significantly less disease (p = 1%)", many people interpret this statement as being equivalent to "there is a 99% chance that if I do treatment X it will prevent disease." This essay explains why these statements are not equivalent. For such an experiment, all of the following
One week in 2007, two friends (Dean and Bill) independently told me they were amazed at Google's spelling correction. Type in a search like [speling] and Google instantly comes back with Showing results for: spelling. I thought Dean and Bill, being highly accomplished engineers and mathematicians, would have good intuitions about how this process works. But they didn't, and come to think of it, wh
#1 Gettysburg Powerpoint Presentation and its making (slides) #2 AI: A Modern Approach (book) and AI on the Web (links) #3 World's Longest Palindrome (for 20:02 02/20 2002) #4 Teach Yourself Programming in 10 Years (essay) #5 Paradigms of AI Programming (book) with code #6 Java IAQ and Python IAQ (FAQs) #7 Design Patterns in Dynamic Languages (slides) #8 Lisp compared to Python, Java, and itself i
<BODY> <!-- The text to be displayed when the browser does not support frames --> Your browser does not support frames. Try <A HREF=" http://www.microsoft.com/isapi/redir.dll?PRD=ie&PLCID=0x0409&AR=home&O1=powerpoint8">Internet Explorer 3.0 or later</A> or <A HREF="http://home.netscape.com/">Netscape Navigator 2.0 or later</A>. </BODY>
Design Patterns in Dynamic Languages First put online 17 March 1998; first presented 5 May 1996 pdf version (recommended) ppt version (recommended) 1998-style html version (not recommended) Peter Norvig
このページを最初にブックマークしてみませんか?
『Peter Norvig』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く