diff --git a/tex/dart/flutter.dart b/tex/dart/flutter.dart new file mode 100644 index 0000000..9da6b9d --- /dev/null +++ b/tex/dart/flutter.dart @@ -0,0 +1,25 @@ +import 'package:flutter/material.dart'; + +void main() => runApp(const MyApp()); + +class MyApp extends StatelessWidget { + const MyApp({Key? key}) : super(key: key); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Flutter Demo', + home: Scaffold( + appBar: AppBar( + title: const Text('Flutter Demo'), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: const [ + Text('Hello World'), + ]), + )), + ); + } +} diff --git a/tex/dart/hW.dart b/tex/dart/hW.dart new file mode 100644 index 0000000..dca84fe --- /dev/null +++ b/tex/dart/hW.dart @@ -0,0 +1 @@ +void main() => print("Hello World"); diff --git a/tex/dart/helloWorld.dart b/tex/dart/helloWorld.dart new file mode 100644 index 0000000..90b58e8 --- /dev/null +++ b/tex/dart/helloWorld.dart @@ -0,0 +1,3 @@ +void main() { + print("Hello World"); +} diff --git a/tex/dart/pseudoBFS.txt b/tex/dart/pseudoBFS.txt new file mode 100644 index 0000000..b627b71 --- /dev/null +++ b/tex/dart/pseudoBFS.txt @@ -0,0 +1,10 @@ + BFS(G, s): + queue Q + s <- visited + Q.add(s) + while (Q.not_empty): + u = Q.pop + for a in u.connections: + if a is unvisited: + Q.add(a) + a <- visited \ No newline at end of file diff --git a/tex/dart/pseudoDFS.txt b/tex/dart/pseudoDFS.txt new file mode 100644 index 0000000..2b3534d --- /dev/null +++ b/tex/dart/pseudoDFS.txt @@ -0,0 +1,12 @@ +function doDfs(G[n]: Graph): + visited = array[n, false] + + function DFS(u: int): + visited[u] = true + for v: (u, v) in G: + if not visited[v]: + DFS(v) + + for i = 1 to n: + if not visited[i]: + DFS(i) \ No newline at end of file