Google+ insable: 01/01/2011 - 02/01/2011

2011-01-16

科赫雪花/コッホ雪片/Koch snowflake

外面开始下雪了,入冬的第一场有规模的雪。

科赫曲线是一种分形。其形态似雪花,又称科赫雪花、雪花曲线。其豪斯多夫维是log4 / log3
它最早出现在Helge von Koch的论文《关于一条连续而无切线,可由初等几何构作的曲线》(1904年,法语原题:Sur une courbe continue sans tangente, obtenue par une construction géométrique élémentaire)。
科赫曲线是 de Rham曲线的特例。
给定线段AB,科赫曲线可以由以下步骤生成:
  1. 将线段分成三等份(AC,CD,DB)
  2. 以CD为底,向外(内外随意)画一个等边三角形DMC
  3. 将线段CD移去
  4. 分别对AC,CM,MD,DB重复1~3。

    生成过程演示
    
科赫雪花是以等边三角形三边生成的科赫曲线组成的。科赫雪花的面积是 \frac{2\sqrt{3}(s^2)}{5},其中s是原来三角形的边长。每条科赫曲线的长度是无限大,它是连续而无处可微的曲线。
コッホ曲線(コッホきょくせん、英語: Koch curve)はフラクタル図形の一つ。スウェーデンの数学者ヘルゲ・フォン・コッホ (Helge von Koch) が考案した。線分を3等分し、分割した2点を頂点とする正三角形の作図を無限に繰り返すことによって得られる図形である。1回の操作で線分の長さが 4/3 倍になるので、操作を無限に繰り返して得られるコッホ曲線の長さは無限大である。完全なものは作図することができない。 コッホ曲線は相似比が1/34個のセグメントから成っているので、フラクタル次元はlog4 / log3 = 1.26186...次元である。
コッホ雪片(コッホせっぺん)は、上記のコッホ曲線をつなぎ合わせ、始点と終点を一致させたものである。
コッホ雪片は、有限の面積であるにもかかわらず、無限の周囲を持つ。

Koch snowflake

The Koch curve can be constructed by starting with an equilateral triangle, then recursively altering each line segment as follows:
  1. divide the line segment into three segments of equal length.
  2. draw an equilateral triangle that has the middle segment from step 1 as its base and points outward.
  3. remove the line segment that is the base of the triangle from step 2.
After one iteration of this process, the result is a shape similar to the Star of David.
The Koch curve is the limit approached as the above steps are followed over and over again.


Properties

The Koch curve has an infinite length because each time the steps above are performed on each line segment of the figure there are four times as many line segments, the length of each being one-third the length of the segments in the previous stage. Hence the total length increases by one third and thus the length at step n will be (4/3)n of the original triangle perimeter: the fractal dimension is log 4/log 3 ≈ 1.26, greater than the dimension of a line (1) but less than Peano's space-filling curve (2).
The Koch curve is continuous everywhere but differentiable nowhere.
Taking s as the side length, the original triangle area is \frac{s^2\sqrt{3}}{4} . The side length of each successive small triangle is 1/3 of those in the previous iteration; because the area of the added triangles is proportional to the square of its side length, the area of each triangle added in the nth step is 1/9th of that in the (n-1)th step. In each iteration after the first, 4 times as many triangles are added as in the previous iteration; because the first iteration adds 3 triangles, the nth iteration will add  3 \cdot 4^{n-1}  triangles. Combining these two formulae gives the iteration formula:
A_{n+1} = A_n + \frac{3 \cdot 4^{n-1}}{9^n}A_0\quad n \ge 1 \, ,
where A0 is area of the original triangle. Substituting in
A_1 = \frac{4}{3} A_0 \, ,
and expanding yields:
A_{n+1} = \frac{4}{3} A_0 + \sum_{k=2}^n \frac{3 \cdot 4^{k-1}}{9^k} A_0 = \left (\frac{4}{3} + \frac{1}{3} \sum_{k=1}^n \frac{4^{k}}{9^k} \right ) A_0  \, .
In the limit, as n goes to infinity, the limit of the sum of the powers of 4/9 is 4/5, so
 \lim_{n \rightarrow \infty} A_n = \left( \frac{4}{3} + \frac{1}{3} \cdot \frac{4}{5} \right ) A_0 = \frac{8}{5} A_0 \, .
So the area of a Koch snowflake is 8/5 of the area of the original triangle, or \frac{2s^2\sqrt{3}}{5}. Therefore the infinite perimeter of the Koch triangle encloses a finite area.

             Excel VBA Project:http://goo.gl/2vinu

2011-01-15

Custom Search API

handleResponse({
 "kind": "customsearch#search",
 "url": {
  "type": "application/json",
  "template": "https://www.googleapis.com/customsearch/v1?q\u003d{searchTerms}&num\u003d{count?}&start\u003d{startIndex?}&hr\u003d{language?}&safe\u003d{safe?}&cx\u003d{cx?}&cref\u003d{cref?}&sort\u003d{sort?}&alt\u003djson"
 },
 "queries": {
  "nextPage": [
   {
    "title": "Google Custom Search - lectures",
    "totalResults": 9130000,
    "searchTerms": "lectures",
    "count": 10,
    "startIndex": 11,
    "inputEncoding": "utf8",
    "outputEncoding": "utf8",
    "cx": "017576662512468239146:omuauf_lfve"
   }
  ],
  "request": [
   {
    "title": "Google Custom Search - lectures",
    "totalResults": 9130000,
    "searchTerms": "lectures",
    "count": 10,
    "startIndex": 1,
    "inputEncoding": "utf8",
    "outputEncoding": "utf8",
    "cx": "017576662512468239146:omuauf_lfve"
   }
  ]
 },
 "context": {
  "title": "Curriculum",
  "facets": [
   [
    {
     "label": "lectures",
     "anchor": "Lectures"
    }
   ],
   [
    {
     "label": "assignments",
     "anchor": "Assignments"
    }
   ],
   [
    {
     "label": "reference",
     "anchor": "Reference"
    }
   ]
  ]
 },
 "items": [
  {
   "kind": "customsearch#result",
   "title": "EE364a: Lecture Videos",
   "htmlTitle": "EE364a: \u003cb\u003eLecture\u003c/b\u003e Videos",
   "link": "http://www.stanford.edu/class/ee364a/videos.html",
   "displayLink": "www.stanford.edu",
   "snippet": "Apr 7, 2010 ... Course materials. Lecture slides · Lecture videos (2008) · Review sessions.   Assignments. Homework · Reading. Exams. Final exam ...",
   "htmlSnippet": "Apr 7, 2010 \u003cb\u003e...\u003c/b\u003e Course materials. \u003cb\u003eLecture\u003c/b\u003e slides · \u003cb\u003eLecture\u003c/b\u003e videos (2008) · Review sessions. \u003cbr\u003e  Assignments. Homework · Reading. Exams. Final exam \u003cb\u003e...\u003c/b\u003e",
   "cacheid": "TxVqFzFZLOsJ"
  },
  {
   "kind": "customsearch#result",
   "title": "Home § Harvard Natural Sciences Lecture Demonstrations",
   "htmlTitle": "Home § Harvard Natural Sciences \u003cb\u003eLecture\u003c/b\u003e Demonstrations",
   "link": "http://www.fas.harvard.edu/scidemos/",
   "displayLink": "www.fas.harvard.edu",
   "snippet": "A categorized catalog of lecture demonstrations available to undergraduate   Harvard Physics courses consisting of descriptions, diagrams, and photos.",
   "htmlSnippet": "A categorized catalog of \u003cb\u003electure\u003c/b\u003e demonstrations available to undergraduate \u003cbr\u003e  Harvard Physics courses consisting of descriptions, diagrams, and photos.",
   "cacheid": "wTeuo1Ba7qsJ"
  },
  {
   "kind": "customsearch#result",
   "title": "Discrete Math Lecture Notes",
   "htmlTitle": "Discrete Math \u003cb\u003eLecture\u003c/b\u003e Notes",
   "link": "http://www.cs.columbia.edu/~zeph/3203s04/lectures.html",
   "displayLink": "www.cs.columbia.edu",
   "snippet": "Jan 16, 2004 ... Discrete Math Lecture Notes. by Zeph Grunschlag. Topics. Lecture Download.   Introduction: course policies; Overview, Logic, Propositions, ppt ...",
   "htmlSnippet": "Jan 16, 2004 \u003cb\u003e...\u003c/b\u003e Discrete Math \u003cb\u003eLecture\u003c/b\u003e Notes. by Zeph Grunschlag. Topics. \u003cb\u003eLecture\u003c/b\u003e Download. \u003cbr\u003e  Introduction: course policies; Overview, Logic, Propositions, ppt \u003cb\u003e...\u003c/b\u003e",
   "cacheid": "MZ8S-g5WMB8J"
  },
  {
   "kind": "customsearch#result",
   "title": "Free Crypto Lectures - University of Washington Computer Science ...",
   "htmlTitle": "Free Crypto \u003cb\u003eLectures\u003c/b\u003e - University of Washington Computer Science \u003cb\u003e...\u003c/b\u003e",
   "link": "http://www.cs.washington.edu/education/courses/csep590/06wi/lectures/",
   "displayLink": "www.cs.washington.edu",
   "snippet": "",
   "htmlSnippet": ""
  },
  {
   "kind": "customsearch#result",
   "title": "Dr. Adleman - Welcome — Association for Computing Machinery",
   "htmlTitle": "Dr. Adleman - Welcome — Association for Computing Machinery",
   "link": "http://www.acm.org/awards/turing_citations/rivest-shamir-adleman.html",
   "displayLink": "www.acm.org",
   "snippet": "",
   "htmlSnippet": ""
  },
  {
   "kind": "customsearch#result",
   "title": "Lecture 23: Artificial Intelligence",
   "htmlTitle": "\u003cb\u003eLecture\u003c/b\u003e 23: Artificial Intelligence",
   "link": "http://www.cs.princeton.edu/courses/archive/spr05/cos126/lectures/23.pdf",
   "displayLink": "www.cs.princeton.edu",
   "snippet": "2. Overview. A whirlwind tour of Artificial Intelligence. We spend just one   lecture, but there are: ■. Many courses on AI, but only one at Princeton :- (   ...",
   "htmlSnippet": "2. Overview. A whirlwind tour of Artificial Intelligence. We spend just one \u003cbr\u003e  \u003cb\u003electure\u003c/b\u003e, but there are: ■. Many courses on AI, but only one at Princeton :- ( \u003cbr\u003e  \u003cb\u003e...\u003c/b\u003e",
   "cacheid": "4vD07Y725wUJ",
   "pagemap": {
    "metatags": [
     {
      "creationdate": "D:20050424201323Z00'00'",
      "creator": "pdftopdf filter",
      "moddate": "D:20050424201323Z00'00'",
      "producer": "Mac OS X 10.3.8 Quartz PDFContext"
     }
    ]
   }
  },
  {
   "kind": "customsearch#result",
   "title": "CS 152 Computer Architecture and Engineering Lecture 1 ...",
   "htmlTitle": "CS 152 Computer Architecture and Engineering \u003cb\u003eLecture\u003c/b\u003e 1 \u003cb\u003e...\u003c/b\u003e",
   "link": "http://www-inst.eecs.berkeley.edu/~cs152/sp09/lectures/L01-Intro.pdf",
   "displayLink": "www-inst.eecs.berkeley.edu",
   "snippet": "Jan 20, 2009 ... Lectures available online before noon, day of lecture ... Based on lectures,   problem sets, and labs. • 40% Labs (one per module) ...",
   "htmlSnippet": "Jan 20, 2009 \u003cb\u003e...\u003c/b\u003e \u003cb\u003eLectures\u003c/b\u003e available online before noon, day of \u003cb\u003electure\u003c/b\u003e \u003cb\u003e...\u003c/b\u003e Based on \u003cb\u003electures\u003c/b\u003e, \u003cbr\u003e  problem sets, and labs. • 40% Labs (one per module) \u003cb\u003e...\u003c/b\u003e",
   "cacheid": "lPNF9AE8tYEJ",
   "pagemap": {
    "metatags": [
     {
      "creationdate": "D:20090120190950-08'00'",
      "moddate": "D:20090120190950-08'00'"
     }
    ]
   }
  },
  {
   "kind": "customsearch#result",
   "title": "Lecture Schedule",
   "htmlTitle": "\u003cb\u003eLecture\u003c/b\u003e Schedule",
   "link": "http://www.stanford.edu/class/cs140/cgi-bin/lectures.php",
   "displayLink": "www.stanford.edu",
   "snippet": "We recommend that you print out the notes for each lecture and bring them with   you to class, so that you can add additional notes during class. ...",
   "htmlSnippet": "We recommend that you print out the notes for each \u003cb\u003electure\u003c/b\u003e and bring them with \u003cbr\u003e  you to class, so that you can add additional notes during class. \u003cb\u003e...\u003c/b\u003e",
   "cacheid": "5T4lXiGl-ogJ"
  },
  {
   "kind": "customsearch#result",
   "title": "Lecture 7: Recursion",
   "htmlTitle": "\u003cb\u003eLecture\u003c/b\u003e 7: Recursion",
   "link": "http://www.cs.princeton.edu/courses/archive/spr05/cos126/lectures/07.pdf",
   "displayLink": "www.cs.princeton.edu",
   "snippet": "Lecture 7: Recursion. Start. Finish. Overview. What is recursion? ■. When one   function calls ITSELF directly or indirectly. Why learn recursion? ...",
   "htmlSnippet": "\u003cb\u003eLecture\u003c/b\u003e 7: Recursion. Start. Finish. Overview. What is recursion? ■. When one \u003cbr\u003e  function calls ITSELF directly or indirectly. Why learn recursion? \u003cb\u003e...\u003c/b\u003e",
   "cacheid": "Hn01M6e-Cw4J",
   "pagemap": {
    "metatags": [
     {
      "creationdate": "D:20050218214640Z00'00'",
      "creator": "pdftopdf filter",
      "moddate": "D:20050218214640Z00'00'",
      "producer": "Mac OS X 10.3.7 Quartz PDFContext"
     }
    ]
   }
  },
  {
   "kind": "customsearch#result",
   "title": "EE263: Lecture Slides",
   "htmlTitle": "EE263: \u003cb\u003eLecture\u003c/b\u003e Slides",
   "link": "http://www.stanford.edu/class/ee263/lectures.html",
   "displayLink": "www.stanford.edu",
   "snippet": "Summary and final comments · All lectures, in 2up format, in one pdf file. Page   generated 2010-12-09 06:43:48 PST, by jemdoc.",
   "htmlSnippet": "Summary and final comments · All \u003cb\u003electures\u003c/b\u003e, in 2up format, in one pdf file. Page \u003cbr\u003e  generated 2010-12-09 06:43:48 PST, by jemdoc.",
   "cacheid": "HY9E7ycKKocJ"
  }
 ]
}
);