ip-leda-homepage.dvi

Similar documents
P05.ppt

p...{..P01-48(TF)

Java演習(4) -- 変数と型 --

C言語によるアルゴリズムとデータ構造

ex01.dvi

‚æ4›ñ

: CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and Technology

double float

Łñ“’‘‚2004

プリント


Kumagai09-hi-2.indd

ex01.dvi

untitled

CudaWaveField

Java Java Java Java Java 4 p * *** ***** *** * Unix p a,b,c,d 100,200,250,500 a*b = a*b+c = a*b+c*d = (a+b)*(c+d) = 225

31 gh gw

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF

解きながら学ぶJava入門編

ALG2012-C.ppt

Microsoft Word - C.....u.K...doc

14 2 5

Java updated

Microsoft Word - Training10_プリプロセッサ.docx

2008chom.pdf

第3章 OpenGL の基礎

(Basic Theory of Information Processing) Fortran Fortan Fortan Fortan 1

第3章 OpenGL の基礎

±é½¬£²¡§£Í£Ð£É½éÊâ

untitled

明解Javaによるアルゴリズムとデータ構造

main


10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

untitled

(Version: 2017/4/18) Intel CPU 1 Intel CPU( AMD CPU) 64bit SIMD Inline Assemler Windows Visual C++ Linux gcc 2 FPU SSE2 Intel CPU do

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU

計算幾何学入門 Introduction to Computational Geometry

For_Beginners_CAPL.indd

卒 業 研 究 報 告.PDF

解きながら学ぶC++入門編

K227 Java 2

/* do-while */ #include <stdio.h> #include <math.h> int main(void) double val1, val2, arith_mean, geo_mean; printf( \n ); do printf( ); scanf( %lf, &v

r08.dvi

8 if switch for while do while 2

HABOC manual

joho09.ppt

comment.dvi

C による数値計算法入門 ( 第 2 版 ) 新装版 サンプルページ この本の定価 判型などは, 以下の URL からご覧いただけます. このサンプルページの内容は, 新装版 1 刷発行時のものです.

MPI usage

新版明解C言語 実践編

2.2 Sage I 11 factor Sage Sage exit quit 1 sage : exit 2 Exiting Sage ( CPU time 0m0.06s, Wall time 2m8.71 s). 2.2 Sage Python Sage 1. Sage.sage 2. sa

2008 DS T050049

num2.dvi

DiMP Users Manual Yuichi Tazaki

r07.dvi

,,,,., C Java,,.,,.,., ,,.,, i

[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1:

RaVioli SIMD

1. A0 A B A0 A : A1,...,A5 B : B1,...,B

ohp07.dvi

@okuraofvegetabl

[1] #include<stdio.h> main() { printf("hello, world."); return 0; } (G1) int long int float ± ±

OpenMP (1) 1, 12 1 UNIX (FUJITSU GP7000F model 900), 13 1 (COMPAQ GS320) FUJITSU VPP5000/64 1 (a) (b) 1: ( 1(a))

新・明解Java入門

C ( ) C ( ) C C C C C 1 Fortran Character*72 name Integer age Real income 3 1 C mandata mandata ( ) name age income mandata ( ) mandat

1.3 2 gnuplot> set samples gnuplot> plot sin(x) sin gnuplot> plot [0:6.28] [-1.5:1.5] sin(x) gnuplot> plot [-6.28:6.28] [-1.5:1.5] sin(x),co

ohp08.dvi

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè5²ó

SystemC言語概論

Copyright c 2008 Zhenjiang Hu, All Right Reserved.

新・明解C言語 実践編

haskell.gby

¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~ alse

programmingII2019-v01

LIFO(last in first out, ) 1 FIFO(first in first out, ) 2 2 PUSH POP : 1

コンピュータ概論

50. (km) A B C C 7 B A 0

:30 12:00 I. I VI II. III. IV. a d V. VI

新・明解C言語で学ぶアルゴリズムとデータ構造

, , B 305, ,

1 return main() { main main C 1 戻り値の型 関数名 引数 関数ブロックをあらわす中括弧 main() 関数の定義 int main(void){ printf("hello World!!\n"); return 0; 戻り値 1: main() 2.2 C main

A B 1: Ex. MPICH-G2 C.f. NXProxy [Tanaka] 2:

新コンフィギュレータのフレームワークについて

1.ppt

2.2 Java C main Java main 2 C 6 C Java 3 C Java ( ) G101Hello.java G101Hello main G101Hello.java /* G101Hello */ class G101Hello { /* main */ public s

Smalltalk_

(2 Linux Mozilla [ ] [ ] [ ] [ ] URL 2 qkc, nkc ~/.cshrc (emacs 2 set path=($path /usr/meiji/pub/linux/bin tcsh b

GPU Computing on Business

( ) ( ) 30 ( ) 27 [1] p LIFO(last in first out, ) (push) (pup) 1

joho12.ppt

名称未設定-1

Informatics 2010.key


flex06_01_28

fiš„v3.dvi

pptx

Microsoft Word - SU1204教本(Driver)原稿.docx

3.1 stdio.h iostream List.2 using namespace std C printf ( ) %d %f %s %d C++ cout cout List.2 Hello World! cout << float a = 1.2f; int b = 3; cout <<

Transcription:

LEDA:,,,, Kurt Mehlhorn LEDA LEDA 1 [2] LEDA Library for Efficient Data types and Algorithms LEDA LEDA C++ 1

LEDA LEDA Dijkstra( ) LEDA 2 : LEDA LEDA VORONOI() 1, LEDA voronoi demo.c LEDA 2

1: LEDA LEDA 1997 Mehlhorn Mehlhorn LEDA Nina Amenta [1] Nina S VD(S) V S L = S [ V L L L L S LEDA Mehlhorn

#include <LEDA/graph.h> #include <LEDA/map.h> #include <LEDA/float kernel.h> #include <LEDA/geo alg.h> #include <LEDA/window.h> void CRUST(const list<point>& S, GRAPH<point, int>& G) f list<point> L=S; GRAPH<circle, point> VD; VORONOI(L, VD); // add Voronoi vertices and mark them map<point, bool> voronoi vertex(false); node v; forall nodes(v, VD) f if (VD.outdeg(v) < 2)continue; point p = VD[v].center(); voronoi vertex[p] = true; L.append(p); g DELAUNAY TRIANG(L, G); forall nodes(v, G) if (voronoi vertex[g[v]]) G.del node(v); g int main() f list<point> S; window W; W.display(); point p; while(w>>p) //input points in the window S.append(p); GRAPH<point, int> G; CRUST(S, G); node v; edge e; W.clear(); forall nodes(v, G)W.draw node(g[v]); forall edges(e, G) W.draw segment(g[source(e)], G[target(e)]); W.screenshot("crust.ps"); 4

g //output the screen image to a ps file. leda wait(2.0); //wait 2 seconds return 0; 2 2: CRUST 4 LEDA 5

17 1 2 9 11 16 18 19 4 14 15 5 8 6 7 1 : 17 1 2 9 11 16 18 19 4 14 15 5 8 6 7 1 4: 1 n n n i j (i; j) (j; i) 1 0 5 6

4 7 5 11 9 0 1 6 8 1 2 5: Hopcroft Tarjan 1974 LEDA gw plan demo 6 LEDA ps, 6 7 Layout Simple Layout circular layout?? Kuratowski K ; LEDA Kuratowski 7

7 15 9 14 4 11 5 1 8 6 1 0 2 6: 5 5 LEDA LEDA, C++ LEDA http://www.mpi-sb.mpg.de/leda/download/ Unix Sparc-Solaris, Mips-Irix, i86-linux Windows Visual C++, Borland C++ /usr/local/lib /usr/local/include (make) 6 LEDA LEDA LEDA LEDA 8

5 4 6 2 7 1 8 0 4 9 15 6 7 14 11 1 2 1 7: Kuratowski 50 1500 LEDA 7 LEDA LEDA MCI(USA), Comptel(Finnland), France Telecom, ATR(Japan), Siemens(Germany), Sun Microsystems(USA), Daimler Benz(Germany), Ford(USA), Silicon Graphics(USA), DEC(USA), Minolta(USA) 8 LEDA Dijkstra LEDA Dijkstra G =(V;E), s 2 V, 9

cost: E! N, begin dist(s) =0; dist(v) =1; for v 6= s; ; end while do u dist ; od u for u e =(u; v) do dist(v)= min(dist(v), dist(u)+ cost(e)); od Dijkstra dist LEDA LEDA void DIJKSTRA(const graph &G, node s, const edge array<double>& cost, node array<double>& dist) f node pq <double> PQ(G); node v; edge e; forall nodes(v, G) f if (v == s)dist[v] = 0; else dist[v] = MAXDOUBLE; PQ.insert(v, dist[v]); g while(!pq.empty()) f node u = PQ.del min(); forall out edges(e, u) f v = target(e); double c = dist[u] + cost[e];

g g g if(c < dist[v]) f PQ.decrease p(v, c); dist[v] = c; g 9 LEDA LEDA list<int> L; CGAL LEDA LEDA short, int, long, float, double integer, bigfloat rational bigfloat bigfloat::set precision(2λm); LEDA real real x = (sqrt(17) 2) Λ (sqrt(17)+ 2); real 17 2 2 =1 LEDA real LEDA Book[] LEDA Manual[4] 11 LEDA 1. 2. : 11

. : 4. : 5. : 6. : 7. : 7.1 : Dijkstra Bellman-Ford. 7.2 :. 8. : preflow-push Goldberg-Tarjan. 9. : capacity-scaling.. :. 11. :. : 1. : 14. : Kuratowski. 15. : 16. : 17. : 1. 2. (. 4. 5. 6. 7. 8. 9.

. : 11. (CRUST). 1. 14. 15. 1 LEDA LEDA http://www-or.amp.i.kyoto-u.ac.jp /algo-eng/db/index.html [1] N. Amenta, M. Bern, and D. Eppstein: "The crust and the fi-skeleton: Combinatorial curve reconstruction," Graphics Models and Image Processing, pp.5-15 (1998). [2] (1979). [] K. Mehlhorn and S. Näher: "LEDA: A platform for combinatorial and geometric computing," Cmbridge Univ. Press (1999). [4] K. Mehlhorn et al.: "The LEDA User Manual Version 4.0," Max Planck Institute für Informatik, Germenay (1999). 1