Skip to main content

York Jong's Library tagged algorithm   View Popular

23 Jul 09

Antiobjects - Wikipedia, the free encyclopedia

The notion of antiobjects is a computational metaphor useful to conceptualize and solve hard problems by swapping computational foreground and background.

en.wikipedia.org/Antiobjects - Preview

algorithm maze game AI

  • The notion of antiobjects is a computational metaphor useful to conceptualize and solve hard problems by swapping computational foreground and background.
  • Antiobjects turn things on their head. In the case of Pacman we put the main computation into the maze; to simulate the behavior of an air bubble we put the main computation into the water; to create a collaborative soccer game we put the main computation into the soccer field.
  • 2 more annotations...
02 Jun 09

也是回顧: 產生迷宮的另一種方法

前些時日,在書店亂逛,無意間看到一本關於資料結構與演算法的書,裡頭提到利用 Set Union 來產生迷宮的方法

hctu.blogspot.com/...blog-post_14.html - Preview

algorithm maze

14 Feb 09

貼圖 filtering 與 MIP map 簡介 [Part 3]

如果重新取樣時,取樣點的間距比原來要大,即縮小圖形的時候,就會出現新的問題。最明顯的問題,在於取樣點間距放大時,相對的,取樣頻率也就減少了。這時,訊號中就可能會包含一些過高的頻率成份。所以,這時候會需要一個 low pass filter。

www.csie.ntu.edu.tw/...page_3.html - Preview

graphics algorithm filter sampling imaging

12 Feb 09

GRC | How Sub-Pixel Font Rendering Works  

  • an LCD screen boasting a horizontal resolution of 800 whole pixels is actually composed of 800 red, 800 green, and 800 blue sub-pixels interleaved together (R-G-B-R-G-B-R-G-B ...) to form a linear array of 2400 single-color sub-pixels.
  • Out of sheer desperation, a technique known as 'anti-aliasing' was developed. It attempts to employ shades of gray where font designers would like to show only 'part' of a pixel. The hope is that our eyes will tend to average two adjacent gray pixels to see one in the middle.

    The actuality, however, is less wonderful. For small type sizes anti-aliasing merely blurs the image and reduces readability.

  • 1 more annotations...
03 Jan 09

Hacker's Delight

A collection useful programming advice the author has collected over the years; small algorithms that make the programmer's task easier.

www.hackersdelight.org/ - Preview

book programming algorithm embedded

03 May 08

Line drawing algorithm - Wikipedia, the free encyclopedia

A line drawing algorithm is a graphical algorithm for approximating a line segment on discrete graphical media. On discrete media, such as pixel-based displays and printers, line drawing requires such an approximation (in nontrivial cases).

en.wikipedia.org/...Line_drawing_algorithm - Preview

graphics algorithm

Midpoint circle algorithm - Wikipedia, the free encyclopedia

In computer graphics, the midpoint circle algorithm is an algorithm used to determine the points needed for drawing a circle. The algorithm is a variant of Bresenham's line algorithm, although not invented by Bresenham. The algorithm is therefore also sometimes referred to as Bresenham's circle algorithm.

en.wikipedia.org/...Midpoint_circle_algorithm - Preview

graphics algorithm

19 Apr 08

Bresenham's line algorithm - Wikipedia, the free encyclopedia

The Bresenham line algorithm is an algorithm that determines which points in an n-dimensional raster should be plotted in order to form a close approximation to a straight line between two given points. It is commonly used to draw lines on a computer screen, as it uses only integer addition, subtraction and bit shifting all of which are very cheap operations in standard computer architectures. It is one of the earliest algorithms developed in the field of computer graphics.

en.wikipedia.org/...Bresenham's_line_algorithm - Preview

algorithm graphics

24 Jan 08

萬年曆程式

  •  int W[12]={6, 2, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4};


     int y, m, d, w;


     scanf("%d %d %d",&y, &m, &d);


     w=W[m-1]+y+(y/4)-(y/100)+(y/400);


     if( ((y%4)==0) && (m<3) ) {


       w--;


       if((y%100)==0) w++;


       if((y%400)==0) w--;


     }


     printf("%d\n", (w+d)%7);

  • 我們輸入的年份要在
    1583 以後才有用,否則算出來的答案是錯的
23 Dec 07

未來數學家的挑戰 -- NP-hardness 與圍棋

  • 定義: 若 x 為一 NP-hard 問題,則若 NP $\neq P$,則 $x\not\in P$




    也就是說,即使 P=NP,x 還不一定屬於 P,但 $P\neq$NP, 則 x 絕不比 NP 的問題容易

  • 注意在上式中 PSPACE-complete $\subset$ PSPACE,即 PSPACE-complete 是 PSPACE 中的難題,但 PSPACE-hard 不一定屬於 PSPACE

未來數學家的挑戰 -- NP-completeness

  • NP-complete 是 NP 中的難題,NP-complete 解決了
    5

    NP 就解決了。但若有一個屬於 NP 而不屬於 NP-complete 的問題解決了,則其他的 NP 問題不一定可以解決。
  • NP 是英文 nondeterministic polynomial 的縮寫,意思就是非確定性的多項式時間
  • 3 more annotations...

未來數學家的挑戰 -- NP-complete 問題之近似解

  • 所有的 NP-complete 問題雖在 NP 的層次上相聯,在近似解上往往各需不同的解法

未來數學家的挑戰

  • 「一個好的問題勝過十個好解答」。
    因為解答一出,此問題已是到了終點,對不斷求創新的人們而言,已不構成挑戰
  • 新的問題是源頭活水,能開拓新的境界。多數人都不願沉醉在好的解答中不斷的玩味,而希望找到新的問題,不斷的思考,摸索。
16 Jun 07

PHOTORESISTOR ALGORITHMS

1 - 20 of 39 Next ›
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo