1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
1
00:00:00,000 --> 00:00:10,980
>> [Daqq ta mużika]

2
00:00:10,980 --> 00:00:13,260
>> -Alright!

3
00:00:13,260 --> 00:00:16,400
>> -Dan Huwa CS50.

4
00:00:16,400 --> 00:00:18,220
>> -Dan Huwa CS50.

5
00:00:18,220 --> 00:00:19,324
>> -Dan Huwa CS50.

6
00:00:19,324 --> 00:00:20,615
[MUSIC - Iggy AZALEA, "fancy"]

7
00:00:20,615 --> 00:00:29,925

8
00:00:29,925 --> 00:00:33,570
>> Memorja favoriti -My minn CS50
kien meta I marru għall Puzzle Jum.

9
00:00:33,570 --> 00:00:35,797
>> -Probably Biss fil-ħin
qattgħu jaħdmu fuq settijiet problema

10
00:00:35,797 --> 00:00:38,630
mal-ħbieb tiegħi u nies li wold
eventwalment issir blockmates tiegħi.

11
00:00:38,630 --> 00:00:40,421
>> -My Aħjar memorja minn
CS50 huwa l-Hackathon.

12
00:00:40,421 --> 00:00:41,630
-Il CS50 Hackathon.

13
00:00:41,630 --> 00:00:42,130
>> -Hackathon.

14
00:00:42,130 --> 00:00:42,800
>> -Hackathon.

15
00:00:42,800 --> 00:00:43,300
-Hackathon.

16
00:00:43,300 --> 00:00:43,883
-Il Hackathon

17
00:00:43,883 --> 00:00:45,027
-Rob Bowden.

18
00:00:45,027 --> 00:00:46,110
Just kollox dwar lilu.

19
00:00:46,110 --> 00:00:47,401
>> [MUSIC - Iggy AZALEA, "fancy"]

20
00:00:47,401 --> 00:00:56,790

21
00:00:56,790 --> 00:01:02,512
>> Memorja favoriti -My huwa meta I kien fuq
palk u I kellu l-irwol prestiġjuż

22
00:01:02,512 --> 00:01:04,220
ta 'node [? fil-Marbuta?]
[? Lista. ?]

23
00:01:04,220 --> 00:01:08,470
>> -Meta Aħna kollha ltqajna ispazju Dropbox liberu u
David kien simili, jfittxu taħt sedili tiegħek.

24
00:01:08,470 --> 00:01:10,520
U li kien simili, spazju għal kulħadd!

25
00:01:10,520 --> 00:01:11,811
>> [MUSIC - Iggy AZALEA, "fancy"]

26
00:01:11,811 --> 00:01:20,940

27
00:01:20,940 --> 00:01:22,830
>> Parir -My għal kwalunkwe
student deħlin kieku

28
00:01:22,830 --> 00:01:26,170
jkun li verament jaħdmu fuq
P-settijiet mal-ħbieb.

29
00:01:26,170 --> 00:01:27,960
>> Sigħat -Office huwa ferm ħabib tiegħek.

30
00:01:27,960 --> 00:01:30,870
>> Għamla l-aktar ta 'esperjenza tiegħek
u jiltaqa nies kemm tista '.

31
00:01:30,870 --> 00:01:32,390
>> -Don't Jibżgħux jistaqsu għall-għajnuna.

32
00:01:32,390 --> 00:01:33,890
-Start P-settijiet kmieni fil-ġimgħa.

33
00:01:33,890 --> 00:01:36,723
-I Jaħsbu l-akbar ħaġa hija li
jieħdu vantaġġ tar-riżorsi kollha

34
00:01:36,723 --> 00:01:37,950
li CS50 għandha.

35
00:01:37,950 --> 00:01:39,960
>> -Go Li ħinijiet tal-uffiċċju kmieni fil-ġimgħa.

36
00:01:39,960 --> 00:01:41,430
>> -Definitely Tara l-xorts.

37
00:01:41,430 --> 00:01:42,989
>> -Don't Procrastinate fuq P-settijiet tiegħek.

38
00:01:42,989 --> 00:01:45,780
Għamla żgur li int issib grupp kbir
ta 'nies li jaħdmu fuq P-settijiet.

39
00:01:45,780 --> 00:01:48,530
Inti tista 'jkollha lott ta' gost
u jiksbu xogħol magħmul flimkien.

40
00:01:48,530 --> 00:01:50,370
>> -Don't Jibżgħux biex timbotta lilek innifsek.

41
00:01:50,370 --> 00:01:52,080
Mur għall-Hacker edizzjoni kultant.

42
00:01:52,080 --> 00:01:55,410
>> Affarijiet -Write fuq il-karta qabel
Qatt touch kompjuter tiegħek.

43
00:01:55,410 --> 00:01:58,380
>> -CS50 Huwa verament kbir fuq
jipprovdu modi biex tikseb l-għajnuna.

44
00:01:58,380 --> 00:02:01,134
>> -My Biċċa waħda ta 'pariri huwa l-irqad.

45
00:02:01,134 --> 00:02:02,050
Has xi ħadd qal li?

46
00:02:02,050 --> 00:02:04,100
Sleep, għall-żgur.

47
00:02:04,100 --> 00:02:08,919
Huwa faċli li ma jagħmlux, iżda
inti stajt ltqajna biex tagħmel dan, I think.

48
00:02:08,919 --> 00:02:12,982
>> -I Ngħid verament tkun ippreparata mentalment
għaliex int ser imħabba tiegħu.

49
00:02:12,982 --> 00:02:14,273
[MUSIC - Iggy AZALEA, "fancy"]

50
00:02:14,273 --> 00:02:17,750

51
00:02:17,750 --> 00:02:18,940
>> -Dan Huwa CS50.

52
00:02:18,940 --> 00:02:22,090

53
00:02:22,090 --> 00:02:23,066
>> -Dan Huwa CS50.

54
00:02:23,066 --> 00:02:26,400

55
00:02:26,400 --> 00:02:26,989
>> -Dan Huwa CS50.

56
00:02:26,989 --> 00:02:28,280
[MUSIC - Iggy AZALEA, "fancy"]

57
00:02:28,280 --> 00:02:31,290

58
00:02:31,290 --> 00:02:31,964
>> -Dan Huwa CS50.

59
00:02:31,964 --> 00:02:36,020

60
00:02:36,020 --> 00:02:42,270
>> [Applause]

61
00:02:42,270 --> 00:02:46,040
>> DAVID J. Malan: Allura dan huwa CS50
u dan huwa l-aħħar ta 'f'Ġimgħa 0.

62
00:02:46,040 --> 00:02:48,770
U li kien biss ftit
tal-persunal CS50 ta li

63
00:02:48,770 --> 00:02:51,100
jistennewkom mhux biss fit-taqsimiet
u ħinijiet tal-uffiċċju, iżda,

64
00:02:51,100 --> 00:02:54,390
ukoll, dan il-weekend li ġejjin
fi Puzzle CS50 Jum.

65
00:02:54,390 --> 00:02:56,410
Li, għal darb'oħra, mhuwiex
kollha dwar l-ipprogrammar.

66
00:02:56,410 --> 00:02:59,710
Tabilħaqq, huwa mistenni li inti
mhux se jkollhom xejn programm,

67
00:02:59,710 --> 00:03:03,780
iżda pjuttost isolvu problemi jużaw
wits u ħbieb flimkien inti.

68
00:03:03,780 --> 00:03:06,400
>> Aħna se tkun magħquda bis xi
tal-ħbieb tagħna fil Facebook--

69
00:03:06,400 --> 00:03:08,980
jekk tirreġistra here-- li
għall-aħħar bosta snin,

70
00:03:08,980 --> 00:03:11,450
attwalment ġew miktub
dawn l-isfidi magħna.

71
00:03:11,450 --> 00:03:14,822
U għalhekk, dawn se jkunu dawk
finalment running Jum Puzzle.

72
00:03:14,822 --> 00:03:17,530
U għalhekk, inti ser tkun sfidata
ma preċiżament il-tip ta 'affarijiet

73
00:03:17,530 --> 00:03:20,520
u problemi li folks fil
Facebook simili biex jaħsbu dwar.

74
00:03:20,520 --> 00:03:21,860
Allura li hija għada.

75
00:03:21,860 --> 00:03:25,980
Reġistru fil cs50.harvard.edu/register.

76
00:03:25,980 --> 00:03:28,120
>> Issa kelma fuq koppja
tal-persunal, b'mod partikolari.

77
00:03:28,120 --> 00:03:30,090
Dan hawnhekk hija Ansel Duff,
li huwa attwalment wieħed

78
00:03:30,090 --> 00:03:33,860
mill-ko-awturi ta 'dawn binarja
basal li rajna nhar l-Erbgħa,

79
00:03:33,860 --> 00:03:36,710
minbarra stess Dan Bradley CS50 tal.

80
00:03:36,710 --> 00:03:40,094
Ansel Duff kien ukoll eks
advisee freshman ta 'minjiera 3 snin ilu

81
00:03:40,094 --> 00:03:41,760
u hu attwalment saħansitra mibnija dan lectern.

82
00:03:41,760 --> 00:03:45,330
He marret fuq biex tagħmel
xjenzi inġinerija u aktar.

83
00:03:45,330 --> 00:03:49,279
Issa, stampa tiegħu hawnhekk huwa attwalment
Ansel 3 snin ilu fil-Hackathon CS50

84
00:03:49,279 --> 00:03:51,820
meta hu mislufa wieħed ta 'tagħna
blalen, staġnati lill laptop tiegħu,

85
00:03:51,820 --> 00:03:55,240
u, għal dak li jmiss 12 wħud fard
sigħat, iffukat fuq il-proġett finali tiegħu,

86
00:03:55,240 --> 00:03:59,150
billi jieħdu waqfiet biss biex tiftaħ
boroż ta 'kandju fil-Hackathon.

87
00:03:59,150 --> 00:04:02,210
>> Imma hu marru fuq aktar reċentement biex
jonfqu dan is-sajf passat magħna,

88
00:04:02,210 --> 00:04:05,270
peress CS50 għall-istaff tagħha, u
issa studenti dan is-semestru,

89
00:04:05,270 --> 00:04:06,770
3D printer tiegħu stess.

90
00:04:06,770 --> 00:04:10,180
U fil-qosor 3D printers huwa
mezz li jistenna pjuttost bħal dan.

91
00:04:10,180 --> 00:04:15,700
You imla bil rukkell tal-plastik
li jiddewweb mill-apparat

92
00:04:15,700 --> 00:04:18,940
u inti tibni affarijiet
litteralment mix-xejn.

93
00:04:18,940 --> 00:04:22,660
Ferm simili printer inkjet, tibda
jobżoq out tikek ftit tal-plastik

94
00:04:22,660 --> 00:04:24,990
dik il-formola flimkien biex
jiffurmaw oġġetti sħaħ.

95
00:04:24,990 --> 00:04:28,430
U hekk Ansel per eżempju, aktar kmieni
dan is-sajf, għandu iPhone 5

96
00:04:28,430 --> 00:04:30,722
u ddeċieda hu verament riedu
li jsalvaw it up fuq l-iskrivanija tiegħu.

97
00:04:30,722 --> 00:04:32,638
Imma hu ma riedx
go out u jixtru xi ħaġa

98
00:04:32,638 --> 00:04:36,030
mill-maħżen Apple jew bħalhom, hekk hu
poġġa bilqiegħda u beda tpinġija xi ħaġa.

99
00:04:36,030 --> 00:04:38,280
Huwa ħa kejl ftit
kif ħoxna

100
00:04:38,280 --> 00:04:41,270
u kif wiesgħa iPhone tiegħu kien,
fassal din id-dehra hawn,

101
00:04:41,270 --> 00:04:43,870
huwa ddeċieda li ried
li jkollhom tilt 75 grad

102
00:04:43,870 --> 00:04:46,150
kif kien tluq fil
lilu fuq l-iskrivanija tiegħu hemmhekk.

103
00:04:46,150 --> 00:04:50,440
Huwa mbagħad mdawwar dan, bl-użu
software, ġo mudell 3D CAD

104
00:04:50,440 --> 00:04:52,400
li ħares ftit
xi ħaġa bħal din.

105
00:04:52,400 --> 00:04:55,940
U mbagħad huwa ipproċediet,
finalment, li attwalment joħolqu dan.

106
00:04:55,940 --> 00:05:00,250
Allura fil-fatt, jekk kwalunkwe inti hawn, forsi
fir-ringiela li I tista tarmi li, jkollhom

107
00:05:00,250 --> 00:05:06,780
an-- hemm aħna għandna folks ma iPhone
5, u hawn għandna żewġ aktar.

108
00:05:06,780 --> 00:05:10,650

109
00:05:10,650 --> 00:05:17,037
>> Issa, li ma għandux outdone, l CS50 stess
Cheng Gong jistabbilixxu wkoll dan is-sajf

110
00:05:17,037 --> 00:05:19,870
biex jibnu pjuttost ftit affarijiet u,
fil-fatt, għal raġunijiet li għadhom

111
00:05:19,870 --> 00:05:23,970
mhux ċar, kien bil-mod
istampar armata ta 'ljunfanti

112
00:05:23,970 --> 00:05:27,250
ma 'armi artikolazzjoni u bagolli.

113
00:05:27,250 --> 00:05:32,515
Koppja ta 'liema huma attwalment hawn jekk
xi ħadd se issa like-- iljunfant.

114
00:05:32,515 --> 00:05:35,650

115
00:05:35,650 --> 00:05:40,522
Kull dritt,. imma dak Cheng għamlet ukoll
għalina huwa hu ħafna ġentilment twaqqaf kamera

116
00:05:40,522 --> 00:05:42,230
minħabba li iljunfant,
jemmnu jew le,

117
00:05:42,230 --> 00:05:44,690
jieħu xi sentejn u
sigħat u nofs li jistampaw.

118
00:05:44,690 --> 00:05:47,840
Anki l-istand iPhone ħadet
siegħa u nofs biex jistampaw.

119
00:05:47,840 --> 00:05:51,490
U dak Cheng marru quddiem u ma
twaqqaf kamera sbieħ quddiem

120
00:05:51,490 --> 00:05:55,580
ta 'dan il-printer 3D, iffilmjati għal siegħa
u nofs bħala disinn Ansel stampat.

121
00:05:55,580 --> 00:05:58,090
Aħna sovrapposta xi sexy
mużika lilha sabiex

122
00:05:58,090 --> 00:06:00,570
li jtik din tfittex
lejn kif istampar 3D xogħlijiet.

123
00:06:00,570 --> 00:06:02,494
U anki jekk dan
huwa attwalment fil-plastik,

124
00:06:02,494 --> 00:06:05,160
jirrealizzaw li jekk dan huwa qasam
ta 'interess għalik akkademikament,

125
00:06:05,160 --> 00:06:07,120
hemm folks, fost
minnhom Jennifer Lewis hawn

126
00:06:07,120 --> 00:06:09,036
fl-Iskola ta '
Inġinerija, li huma attwalment

127
00:06:09,036 --> 00:06:10,920
taħdem fuq l-istampar 3D
oġġetti tal-plastik.

128
00:06:10,920 --> 00:06:14,150
Iżda anke, dejjem,
materjali bijoloġiċi li ssolvi

129
00:06:14,150 --> 00:06:16,530
problemi fiżjoloġiċi għall-bnedmin.

130
00:06:16,530 --> 00:06:19,944
Iżda hawnhekk huwa xi ftit
xi ħaġa minn CS50.

131
00:06:19,944 --> 00:06:31,625
>> [Loud MEKKANIKU ħsejjes]

132
00:06:31,625 --> 00:06:34,250
DAVID J. Malan: Ma ħoss
xi ħaġa bħal dik fir-realtà,

133
00:06:34,250 --> 00:06:37,240
iżda huwa ħafna cooler sabiex isegwu din
f'dak veloċità, u ma 'dak tal-ħoss.

134
00:06:37,240 --> 00:06:40,000
>> Issa, nhar l-Erbgħa, kif
aħna ma l-ewwel tikseb hawn?

135
00:06:40,000 --> 00:06:43,345
Bdejna nitkellmu dwar il-kompjuter
xjenza u staqsejna dak li kien.

136
00:06:43,345 --> 00:06:46,470
U huwa dwar numru ta 'affarijiet, u
hemm f'direzzjonijiet differenti tant

137
00:06:46,470 --> 00:06:48,477
fejn inti tista 'ras
wara kors bħal CS50.

138
00:06:48,477 --> 00:06:50,810
Fil-fatt, jekk inti telgħet waħda
ta 'dawk il-gwidi mhux uffiċjali

139
00:06:50,810 --> 00:06:54,080
li barra CS, il-ktejjeb li
konna pprovduti, jekk int

140
00:06:54,080 --> 00:06:57,150
taħseb li tieħu biss CS50,
jew forsi tagħmel sekondarja,

141
00:06:57,150 --> 00:06:59,557
jew forsi anke tikkonċentra
fl CS, do flip permezz ta 'dak.

142
00:06:59,557 --> 00:07:01,390
U tkun taf tara dijagramma
lejn it-tmiem li

143
00:07:01,390 --> 00:07:04,950
turi li inti l-direzzjonijiet differenti ħafna
f'CS li inti tista 'tmur off fil.

144
00:07:04,950 --> 00:07:09,030
>> Iżda għal-lum, aħna ser tiffoka, għal darb'oħra, fuq
verament waħda mill-veduti fundamentali,

145
00:07:09,030 --> 00:07:11,500
forsi, fejn inti għandek
inputs għall-problemi,

146
00:07:11,500 --> 00:07:13,430
għandek outputs mill
problemi, u inti għandek

147
00:07:13,430 --> 00:07:17,420
algoritmi li biex joħolqu
dawk outputs minn dawk l-inputs.

148
00:07:17,420 --> 00:07:20,330
U eżempju wieħed tali, kien ta '
Naturalment, dan il-ktieb tat-telefon hawn.

149
00:07:20,330 --> 00:07:24,180
U aħna użati bħala eżempju biex tmur
permezz ta 'algoritmu li kienet korretta.

150
00:07:24,180 --> 00:07:26,490
U allura wieħed ieħor kien
korrett, iżda ftit aktar mgħaġġel.

151
00:07:26,490 --> 00:07:29,448
U allura wieħed ieħor li kien ftit
aktar drammatika, iżda fundamentalment

152
00:07:29,448 --> 00:07:30,000
aktar mgħaġġel.

153
00:07:30,000 --> 00:07:32,720
>> Dritt, dan phone book aħna
mitluba kienet madwar 1,000 paġni.

154
00:07:32,720 --> 00:07:36,200
U kif ħafna drabi ma I jkollhom
li tiċrita l-ktieb tat-telefon fil nofs

155
00:07:36,200 --> 00:07:39,930
li ssib xi ħadd bħal Mike Smith,
maximally, fil 1,000 ktieb il-paġna?

156
00:07:39,930 --> 00:07:41,040
Allura, 10 jagħtu jew jieħu.

157
00:07:41,040 --> 00:07:45,050
U hekk darba I Tore dan ħaġa fil
nofs, jew sempliċiment, aktar maturely,

158
00:07:45,050 --> 00:07:48,490
maqsum min-nofs, huwa biss
10 paġni minn 1,000.

159
00:07:48,490 --> 00:07:51,470
U jekk inti testrapola, ftit
anormalment għal ktieb tat-telefon,

160
00:07:51,470 --> 00:07:56,540
imma jekk dan il-ktieb tat-telefon kellhom xi 4
biljun paġni fiha, hekk kompletament

161
00:07:56,540 --> 00:07:59,680
dens fiżikament, kemm
ħinijiet do inti taqsam 4 biljuni

162
00:07:59,680 --> 00:08:01,460
paġna phone book fil nofs?

163
00:08:01,460 --> 00:08:03,035
Allura huwa attwalment 32, jagħtu jew jieħu.

164
00:08:03,035 --> 00:08:07,090
U hekk 32 drabi biss, barra
ta 4 biljun paġni, tista

165
00:08:07,090 --> 00:08:08,700
issib xi ħadd bħal Mike Smith.

166
00:08:08,700 --> 00:08:09,740
U li l-effiċjenza.

167
00:08:09,740 --> 00:08:12,130
Li l-algoritmu tajba, daresay.

168
00:08:12,130 --> 00:08:14,480
>> Imma allura aħna mċaqalqa minn dik
li jippruvaw biex tifformalizza dan.

169
00:08:14,480 --> 00:08:16,100
U jien propost dan il-kodiċi pseudocode.

170
00:08:16,100 --> 00:08:17,800
Kodiċi pseudocode mhix xejn formali.

171
00:08:17,800 --> 00:08:18,880
Mhuwiex xi ħaġa li għandek memorize.

172
00:08:18,880 --> 00:08:21,588
Huwa biss xi ħaġa inti tesprimi
pjuttost intuwittivament jużaw Ingliż,

173
00:08:21,588 --> 00:08:24,990
jew kwalunkwe lingwa verament, li
twassal l-ideat tiegħek konċiż.

174
00:08:24,990 --> 00:08:26,990
Imma x'hemm ewlieni dwar
kodiċi pseudocode huwa li inti

175
00:08:26,990 --> 00:08:30,331
tipprova tantiċipa kollha ta 'l-
każijiet possibbli li jista 'jiġri.

176
00:08:30,331 --> 00:08:33,080
U fil-fatt, f'dan il-pseudocode
kodiċi, kien hemm verament tliet każijiet

177
00:08:33,080 --> 00:08:34,700
kull darba I maqsuma l-ktieb tat-telefon.

178
00:08:34,700 --> 00:08:36,006
Mike jista 'jkun lejn ix-xellug.

179
00:08:36,006 --> 00:08:37,130
Mike jista 'jkun lejn il-lemin.

180
00:08:37,130 --> 00:08:39,240
Jew hu jista 'jkun dritt fuq il-paġna jien fuq.

181
00:08:39,240 --> 00:08:42,110
Jew f'kawża kantuniera, biex ngħidu hekk.

182
00:08:42,110 --> 00:08:46,470
Xenarju bad jista 'jkun wieħed
which-- dak li qed jiġri?

183
00:08:46,470 --> 00:08:48,860
Mike biss mhux fl
l-ktieb tat-telefon fil-livelli kollha.

184
00:08:48,860 --> 00:08:52,720
>> U meta programmi crash-- meta Mac
u PC software li inti guys run

185
00:08:52,720 --> 00:08:56,400
fuq il-kompjuters tiegħek kultant
prekarja jew quits għarrieda,

186
00:08:56,400 --> 00:08:59,770
li ġeneralment ifisser li xi
programmer, xi bniedem bħalek hekk,

187
00:08:59,770 --> 00:09:01,650
biss invitat up u għamel xi żball.

188
00:09:01,650 --> 00:09:05,207
Forsi ma kinitx tantiċipa li forsi hemm
ebda Mike Smith fil-ktieb tat-telefon.

189
00:09:05,207 --> 00:09:08,040
U jekk inti ma attwalment jiktbu
kodiċi li jimmaniġġjaw sitwazzjonijiet bħal dik,

190
00:09:08,040 --> 00:09:09,890
ġeneralment imprevedibbli
affarijiet jista 'jiġri.

191
00:09:09,890 --> 00:09:10,960
Magna tiegħek jistgħu jiffriżaw.

192
00:09:10,960 --> 00:09:11,730
Hija tista 'reboot.

193
00:09:11,730 --> 00:09:12,889
Il-programm jista nieqaf.

194
00:09:12,889 --> 00:09:14,722
U hekk dawn kollha
stupidities li inti tista '

195
00:09:14,722 --> 00:09:18,030
ikunu ltaqgħu magħhom fl attwali tiegħek
ħajja biss jużaw il-kompjuters,

196
00:09:18,030 --> 00:09:20,710
dejjem se jkun biss
spjegat bogħod minn dan intuition

197
00:09:20,710 --> 00:09:24,920
u dan il-fehim ta 'x'inhu
attwalment għaddejjin taħt il-barnuża.

198
00:09:24,920 --> 00:09:27,329
>> Issa ejja jippruvaw jieħdu ħarsa
fi problema aktar ġenerali.

199
00:09:27,329 --> 00:09:29,120
Pjuttost milli tieħu
attendenza f'post bħal

200
00:09:29,120 --> 00:09:32,230
dan, li għandu jkun pjuttost kajman
biex jagħmlu waħda, tnejn, tlieta, erbgħa.

201
00:09:32,230 --> 00:09:34,070
Jew forsi tnejn, erba, sitta, tmienja.

202
00:09:34,070 --> 00:09:36,080
Ejja tiffoka, minflok, fuq
kif nistgħu jifformalizzaw

203
00:09:36,080 --> 00:09:39,400
l-algoritmu tal-proċess mill-
li aħna nkunu nistgħu nieħdu attendenza.

204
00:09:39,400 --> 00:09:42,290
U tul it-triq, ejja nibdew
biex japplikaw xi nomenklatura

205
00:09:42,290 --> 00:09:47,130
li aħna ser tuża llum meta aħna attwalment
jibdew programmar f'lingwa.

206
00:09:47,130 --> 00:09:50,910
So I jagħtuk issa, video erba 'minuti
li aħna jitqiegħdu flimkien mal-ħbieb tagħna

207
00:09:50,910 --> 00:09:52,820
mill TED, l-organizzazzjoni.

208
00:09:52,820 --> 00:09:56,380
Li biha aħna fornuti b'kitba u
huma miġjuba animaturi tagħhom tbati,

209
00:09:56,380 --> 00:10:00,970
u fil-fatt ħolqot 2D
animazzjoni ta 'dak algoritmu huwa.

210
00:10:00,970 --> 00:10:02,776
Jekk nistgħu dim-dwal.

211
00:10:02,776 --> 00:10:06,664
>> [Daqq ta mużika]

212
00:10:06,664 --> 00:10:17,890

213
00:10:17,890 --> 00:10:19,140
Narrator: X'hemm algoritmu?

214
00:10:19,140 --> 00:10:21,620
Fix-xjenza tal-kompjuter,
algoriżmu huwa sett

215
00:10:21,620 --> 00:10:24,840
ta 'struzzjonijiet solvuti
xi-pass-pass problema.

216
00:10:24,840 --> 00:10:27,310
Tipikament, algoritmi huma
esegwiti minn kompjuters,

217
00:10:27,310 --> 00:10:29,365
iżda aħna bnedmin għandna algoritmi ukoll.

218
00:10:29,365 --> 00:10:31,240
Per eżempju, kif kieku
inti tmur dwar għadd

219
00:10:31,240 --> 00:10:32,990
in-numru ta 'nies fil-kamra?

220
00:10:32,990 --> 00:10:36,840
Ukoll, jekk int simili me, youd probabilment
punt f'kull persuna waħda f'ħin wieħed

221
00:10:36,840 --> 00:10:38,370
u l-għadd up minn żero.

222
00:10:38,370 --> 00:10:41,200
Wieħed, tnejn, tlieta, erba ', u ibqa' sejjer hekk.

223
00:10:41,200 --> 00:10:42,410
Ukoll, li algoritmu.

224
00:10:42,410 --> 00:10:45,820
Fil-fatt, ejja jippruvaw jesprimu hu
daqsxejn aktar formalment kodiċi pseudocode.

225
00:10:45,820 --> 00:10:48,940
Sintassi Ingliż-bħal dik
tixbaħ lingwa ta 'programmar.

226
00:10:48,940 --> 00:10:50,880
>> Ħalli n ugwali 0.

227
00:10:50,880 --> 00:10:55,210
Għal kull persuna fil-kamra,
sett n ugwali għal n plus 1.

228
00:10:55,210 --> 00:10:56,790
Kif tinterpreta l-pseudocode?

229
00:10:56,790 --> 00:10:59,490
Well linja waħda jiddikjara,
biex ngħidu hekk, varjabbli

230
00:10:59,490 --> 00:11:02,880
imsejħa n u initializes
valur tiegħu għal 0 Dan biss

231
00:11:02,880 --> 00:11:05,080
ifisser li fil-
bidu ta 'algoritmu tagħna,

232
00:11:05,080 --> 00:11:07,910
il-ħaġa li aħna qed
għadd għandu valur ta '0.

233
00:11:07,910 --> 00:11:10,860
Wara kollox, qabel nibdew għadd
aħna ma jingħaddx xejn s'issa.

234
00:11:10,860 --> 00:11:13,580
Sejħat dan il-varjabbli
n huwa biss konvenzjoni.

235
00:11:13,580 --> 00:11:15,130
I setgħet sejħitilha xejn aktar.

236
00:11:15,130 --> 00:11:17,460
Issa linja żewġ demarks
l-bidu ta 'loop,

237
00:11:17,460 --> 00:11:20,550
sekwenza ta 'passi li se
jirrepetu xi numru ta 'drabi.

238
00:11:20,550 --> 00:11:24,130
Għalhekk fl-eżempju tagħna, il-pass aħna qed
teħid qed isserraħ nies fil-kamra.

239
00:11:24,130 --> 00:11:26,260
Taħt linja tnejn huwa linja
tlieta li jiddeskrivi

240
00:11:26,260 --> 00:11:28,400
eżattament kif aħna ser tmur dwar għadd.

241
00:11:28,400 --> 00:11:31,720
Il indentazzjoni jimplika li
huwa linja tlieta li se jirrepeti.

242
00:11:31,720 --> 00:11:35,190
Allura bil-kodiċi pseudocode hija
qal hu li wara li jibdew minn 0

243
00:11:35,190 --> 00:11:38,940
għal kull persuna fil-
kamra aħna ser iżidu n b'1

244
00:11:38,940 --> 00:11:41,310
Issa dan huwa algoritmu korretta?

245
00:11:41,310 --> 00:11:42,820
Well ejja bang fuq hija daqsxejn.

246
00:11:42,820 --> 00:11:45,520
>> Taħdem jekk ikun hemm
żewġ persuni fil-kamra?

247
00:11:45,520 --> 00:11:46,420
Ejja naraw.

248
00:11:46,420 --> 00:11:48,500
Fl linja waħda aħna initialize n għal 0.

249
00:11:48,500 --> 00:11:51,910
Għal kull wieħed minn dawn iż-żewġ persuni,
aħna mbagħad inkrement n b'1.

250
00:11:51,910 --> 00:11:55,570
Għalhekk fl-ewwel vjaġġ permezz tal-
loop, aħna aġġornament n 0-1.

251
00:11:55,570 --> 00:11:59,320
Fuq it-tieni vjaġġ permezz ta 'dak
istess loop, aħna aġġornament n 1-2.

252
00:11:59,320 --> 00:12:02,850
U għalhekk, minn din tal algoritmu
aħħar, n huwa 2, li

253
00:12:02,850 --> 00:12:04,950
tabilħaqq jaqbel man-numru
ta 'nies fil-kamra.

254
00:12:04,950 --> 00:12:06,040
S'issa, hekk tajjeb.

255
00:12:06,040 --> 00:12:07,870
>> Kif dwar il-każ kantuniera għalkemm?

256
00:12:07,870 --> 00:12:11,090
Ejja ngħidu li hemm 0 nies
fil-room-- minbarra me, li l-

257
00:12:11,090 --> 00:12:12,420
tagħmel għadd.

258
00:12:12,420 --> 00:12:15,380
F'linja waħda, aħna napprovaw initialize n għal 0.

259
00:12:15,380 --> 00:12:17,810
Din id-darba għalkemm, linja
tlieta ma jeżegwixxix fil-livelli kollha

260
00:12:17,810 --> 00:12:19,610
peress li ma hemmx persuna fil-kamra.

261
00:12:19,610 --> 00:12:23,540
U hekk n tibqa 0, li tabilħaqq logħbiet
in-numru ta 'nies fil-kamra.

262
00:12:23,540 --> 00:12:24,670
Pretty sempliċi, id-dritt?

263
00:12:24,670 --> 00:12:27,880
Iżda għadd poplu wieħed fi żmien
hija pjuttost ineffiċjenti, wisq, l-ebda?

264
00:12:27,880 --> 00:12:29,160
Żgur nistgħu nagħmlu aħjar.

265
00:12:29,160 --> 00:12:33,440
Għaliex ma jgħoddux żewġ persuni fi żmien,
minflok għadd wieħed, tnejn, tlieta,

266
00:12:33,440 --> 00:12:36,470
erba ', ħames, sitt, seba',
tmienja, u ibqa 'sejjer hekk.

267
00:12:36,470 --> 00:12:39,106
Għaliex ma jgħoddux tnejn, erba,
sitta, tmienja, u l-bqija?

268
00:12:39,106 --> 00:12:40,670
Huwa anki ħsejjes malajr.

269
00:12:40,670 --> 00:12:41,940
U huwa żgur huwa.

270
00:12:41,940 --> 00:12:44,490
>> Ejja tesprimi din ottimizzazzjoni
fil-kodiċi pseudocode.

271
00:12:44,490 --> 00:12:46,040
Ħalli n ugwali 0.

272
00:12:46,040 --> 00:12:50,760
Għal kull par ta 'nies
kamra, sett n ugwali għal n plus 2.

273
00:12:50,760 --> 00:12:52,360
Pretty bidla sempliċi, id-dritt?

274
00:12:52,360 --> 00:12:56,560
Pjuttost milli joqgħod nies wieħed fi żmien,
aħna minflok għadd minnhom tnejn fi żmien.

275
00:12:56,560 --> 00:12:59,240
Tal Dan algoritmu, b'hekk,
darbtejn aktar malajr bħala l-aħħar.

276
00:12:59,240 --> 00:13:00,530
Imma huwa korrett?

277
00:13:00,530 --> 00:13:01,160
Ejja naraw.

278
00:13:01,160 --> 00:13:03,580
Taħdem jekk ikun hemm
żewġ persuni fil-kamra?

279
00:13:03,580 --> 00:13:05,800
F'linja waħda, aħna initialize n għal 0.

280
00:13:05,800 --> 00:13:09,160
Għal dik par wieħed ta 'nies,
aħna mbagħad inkrement n b'2.

281
00:13:09,160 --> 00:13:11,910
U hekk minn tal dan algoritmu
aħħar n huwa 2, li

282
00:13:11,910 --> 00:13:13,910
tabilħaqq jaqbel man-numru
ta 'nies fil-kamra.

283
00:13:13,910 --> 00:13:16,610
>> Ejja ngħidu li jmiss li hemm
żero nies fil-kamra.

284
00:13:16,610 --> 00:13:19,080
Fl linja waħda aħna initialize n għal 0.

285
00:13:19,080 --> 00:13:21,260
Bħal qabel, linja tlieta
ma jeżegwixxix dan kollu

286
00:13:21,260 --> 00:13:25,270
peress ma jkunx hemm xi pari ta 'nies
fil-kamra, u għalhekk n tibqa 0.

287
00:13:25,270 --> 00:13:27,840
Liema tabilħaqq jaqbel mal-
numru ta 'nies fil-kamra.

288
00:13:27,840 --> 00:13:30,520
Imma x'jiġri jekk ikun hemm
tliet persuni fil-kamra?

289
00:13:30,520 --> 00:13:32,380
Kif jaħdem dan nol algoritmu?

290
00:13:32,380 --> 00:13:35,710
Ejja naraw, f'linja waħda,
aħna initialize n għal 0.

291
00:13:35,710 --> 00:13:39,140
Għal par ta 'dawk in-nies,
aħna mbagħad inkrement n b'2.

292
00:13:39,140 --> 00:13:40,050
Imma allura dak?

293
00:13:40,050 --> 00:13:42,340
Ma jkunx hemm ieħor full
par ta 'nies fil-kamra,

294
00:13:42,340 --> 00:13:44,430
hekk line tnejn m'għadux japplika.

295
00:13:44,430 --> 00:13:48,790
U hekk sa tmiem dan algoritmu, il-
n għadu 2 li mhijiex korretta.

296
00:13:48,790 --> 00:13:52,070
Tabilħaqq tal dan algoritmu qal li
tkun Buggy minħabba li għandu żball.

297
00:13:52,070 --> 00:13:54,070
>> Ejja rimedju ma 'xi
kodiċi pseudocode ġdid.

298
00:13:54,070 --> 00:13:56,110
Ħalli n ugwali 0.

299
00:13:56,110 --> 00:14:00,790
Għal kull par ta 'nies
kamra, sett N ugwali għal n plus 2.

300
00:14:00,790 --> 00:14:05,410
Jekk persuna waħda tibqa abbinata,
sett N ugwali għal n plus 1.

301
00:14:05,410 --> 00:14:09,340
Biex issolvi din il-problema partikolari, konna
introdotti fil-linja erbgħa f'kondizzjoni,

302
00:14:09,340 --> 00:14:12,120
inkella magħruf bħala
fergħa, li tesegwixxi

303
00:14:12,120 --> 00:14:14,890
jekk hemm persuna waħda aħna
ma setgħux par ma 'ieħor.

304
00:14:14,890 --> 00:14:17,140
U hekk issa, jekk
hemm waħda, jew tlieta,

305
00:14:17,140 --> 00:14:21,550
jew kwalunkwe numru fard ta 'nies fil-kamra,
dan algoritmu issa se jgħoddu għalihom.

306
00:14:21,550 --> 00:14:22,810
Nistgħu nagħmlu anke aħjar?

307
00:14:22,810 --> 00:14:25,890
Well, nistgħu għadd f'għadd ta 'tlieta,
jew fours, jew saħansitra livell ta 'għajxien u għexieren,

308
00:14:25,890 --> 00:14:29,390
imma lil hinn minn dak, li għaddej biex tikseb
diffiċli ftit għall-punt.

309
00:14:29,390 --> 00:14:32,900
>> Fl-aħħar tal-ġurnata, kemm jekk
esegwiti minn kompjuters jew bnedmin,

310
00:14:32,900 --> 00:14:34,870
algoritmi huma biss
sett ta 'struzzjonijiet

311
00:14:34,870 --> 00:14:36,560
li biex isolvu problemi.

312
00:14:36,560 --> 00:14:38,360
Dawn kienu biss tlieta.

313
00:14:38,360 --> 00:14:41,860
Liema problema kieku inti
issolvi ma 'algoritmu?

314
00:14:41,860 --> 00:14:44,261
>> DAVID J. Malan: Allura deliberatament,
programm sempliċi ħafna,

315
00:14:44,261 --> 00:14:46,260
algoritmu sempliċi ħafna,
għall-kisba xi ħaġa

316
00:14:46,260 --> 00:14:48,280
sempliċi ħafna, għadd tal-
numru ta 'nies fil-kamra.

317
00:14:48,280 --> 00:14:50,370
>> Imma ejja tease apparti
xi wħud mill-rappreżentant

318
00:14:50,370 --> 00:14:52,870
karatteristiċi hawnhekk li huma attwalment
ser ikunu utli anki meta

319
00:14:52,870 --> 00:14:54,880
implimentazzjoni l-aktar
kumplessa ta 'software.

320
00:14:54,880 --> 00:14:58,060
Allura per eżempju, f'dan l-ewwel linja,
għandna nsejħu l-varjabbli,

321
00:14:58,060 --> 00:15:01,040
u minn alġebra, int
ġeneralment familjari jużaw xuy

322
00:15:01,040 --> 00:15:02,930
u z kultant, u ibqa 'sejjer hekk.

323
00:15:02,930 --> 00:15:05,770
Iżda fil-programmazzjoni, varjabbli
għadhom, fl-aħħar tal-ġurnata,

324
00:15:05,770 --> 00:15:06,680
simili ħafna għal dak.

325
00:15:06,680 --> 00:15:09,910
Iżda huwa forsi aktar sempliċi biex jaħsbu
ta 'varjabbli biss bħala kontenitur.

326
00:15:09,910 --> 00:15:13,520
U, fil-fatt, huwa xi numru ta 'bits
implimentat b'xi fil-hard disk tiegħek

327
00:15:13,520 --> 00:15:16,410
jew fil-memorja tal-kompjuter tiegħek,
iżda aktar fuq li fil-futur.

328
00:15:16,410 --> 00:15:17,670
Huwa biss kontenitur.

329
00:15:17,670 --> 00:15:20,310
U jekk inti tgħidli xi ħaġa
bħall let n ugwali 0,

330
00:15:20,310 --> 00:15:24,310
Ukoll li bħal ssejjaħ dan il-ħġieġ
skutella hawn n, biss isem arbitrarja,

331
00:15:24,310 --> 00:15:26,230
u t-tqegħid xejn inizjalment.

332
00:15:26,230 --> 00:15:28,940
Allura l-valur ta 'dan
bowl dritt issa huwa żero.

333
00:15:28,940 --> 00:15:31,380
U ovvjament jekk inti jipperċepixxu
fil-linja sussegwenti,

334
00:15:31,380 --> 00:15:35,070
li attwalment inkrement xi linja ta '
kodiċi, bħal f'dan il-tielet linja hawn,

335
00:15:35,070 --> 00:15:39,857
minn 1, dan huwa simili qal x'inhu l-
valur kurrenti ta 'n, li għamilhom 0, flimkien ma' 1,

336
00:15:39,857 --> 00:15:41,690
tpoġġi xi ħaġa bħal
ping pong ball fil hawn.

337
00:15:41,690 --> 00:15:45,140
Issa l-valur ta 'dan
varjabbli hija sempliċement 1.

338
00:15:45,140 --> 00:15:50,064
U inti tista 'malajr ħafna estrapolati,
iżda issa huwa 2, issa huwa 3, u l-bqija.

339
00:15:50,064 --> 00:15:51,230
Allura li kollox varjabbli huwa.

340
00:15:51,230 --> 00:15:53,740
Huwa biċċa ta 'ħażna
attwalment jaħżnu xi data.

341
00:15:53,740 --> 00:15:55,050
Għal issa huwa ballun pong ping.

342
00:15:55,050 --> 00:15:55,883
Hemm huwa numru.

343
00:15:55,883 --> 00:15:58,910
Iżda jista 'jkun kliem fil-
dizzjunarju, bħall-jespliċitaw kontrollur

344
00:15:58,910 --> 00:16:02,300
I allużjoni għall nhar l-Erbgħa għall-
wieħed ta 'settijiet problema sena li għaddiet.

345
00:16:02,300 --> 00:16:05,640
>> Issa ieħor idea ewlenija, li bl-istess mod
hija pjuttost intuwittivi I ser jargumenta,

346
00:16:05,640 --> 00:16:06,690
huwa dak ta 'loop.

347
00:16:06,690 --> 00:16:08,930
U l-linja fil-proċess
ta 'kif jingħaddu kulħadd

348
00:16:08,930 --> 00:16:12,540
huwa, ovvjament, tagħmel l-istess
Ħaġa darb'oħra u again-- jew wieħed

349
00:16:12,540 --> 00:16:14,140
fi żmien jew tnejn fi żmien.

350
00:16:14,140 --> 00:16:17,690
U inti tista 'tesprimi din bl-Ingliż, jew
kodiċi pseudocode, fi kwalunkwe numru ta 'modi,

351
00:16:17,690 --> 00:16:21,560
iżda bl-użu dan prepożizzjoni "għal"
huwa mod komuni ħafna ta 'kif isir dan.

352
00:16:21,560 --> 00:16:24,460
Għal kull persuna fil-kamra, jagħmlu dan.

353
00:16:24,460 --> 00:16:25,350
Għal darb'oħra u għal darb'oħra.

354
00:16:25,350 --> 00:16:27,700
U l-fatt li huwa
indentata, linja tlieta,

355
00:16:27,700 --> 00:16:29,840
ifisser biss li dak
int suppost tagħmel

356
00:16:29,840 --> 00:16:33,490
hija l-għalf thats inċiża
taħt il-linja tnejn innifsu.

357
00:16:33,490 --> 00:16:35,590
Just konvenzjoni tal-bniedem,
iżda waħda komuni

358
00:16:35,590 --> 00:16:39,010
kif aħna ser tara fil ogħla attwali
lingwi ta 'programmar livell.

359
00:16:39,010 --> 00:16:41,870
>> Issa ftit aktar interessanti hija
meta ikollok fil-każ kantuniera.

360
00:16:41,870 --> 00:16:43,970
Per eżempju, kantuniera
każ kien meta hemm

361
00:16:43,970 --> 00:16:48,060
kienu tliet persuni, jew ħamsa, jew seba ',
jew kwalunkwe numru fard ta 'nies fil-kamra,

362
00:16:48,060 --> 00:16:51,630
għaliex tagħmel dan billi brejkijiet twos
eventwalment minħabba tiegħek tmur

363
00:16:51,630 --> 00:16:54,265
titlifx xi ħadd, jew fil-
bidu nett jew it-tmiem ħafna

364
00:16:54,265 --> 00:16:55,390
jiddependi fuq kif inti tagħmel dan.

365
00:16:55,390 --> 00:16:59,800
U għalhekk, issa, għandi din il-fergħa, jew
kundizzjoni, jekk persuna waħda tibqa,

366
00:16:59,800 --> 00:17:04,490
imbagħad imorru quddiem u jimmaniġġjaw li wieħed
persuna lonesome li ma jiksbu

367
00:17:04,490 --> 00:17:05,690
paired ma 'xi ħadd ieħor.

368
00:17:05,690 --> 00:17:09,030
Allura dak hu li aħna kieku ssejjaħ
kundizzjoni, jew fergħa.

369
00:17:09,030 --> 00:17:11,500
>> Kodiċi Issa pseudocode
b'mod aktar ġenerali jista 'jkun

370
00:17:11,500 --> 00:17:13,730
miktub sabiex issolvi kwalunkwe numru ta 'problemi.

371
00:17:13,730 --> 00:17:16,490
U dak li ħsibt aħna'd
nagħmlu hawnhekk huwa li tieħu mument

372
00:17:16,490 --> 00:17:20,089
li jistiednu nistgħu ngħidu li CS50
stess Rob Bowden fuq il-palk

373
00:17:20,089 --> 00:17:25,040
li jiġu magħqudin b'żewġ voluntiera,
li jkollhom l-ebda idea dak li jistenna.

374
00:17:25,040 --> 00:17:26,890
A idejn niżlet malli I qal li.

375
00:17:26,890 --> 00:17:28,700
Kif dwarek fuq il-
jieqafx hawn, come fuq up.

376
00:17:28,700 --> 00:17:33,040
U kif madwar minn farther
bogħod, kif madwar mod fil-dahar.

377
00:17:33,040 --> 00:17:35,200
Lura ringiela, come fuq up bl-idejn tiegħek up.

378
00:17:35,200 --> 00:17:36,475
Alright, u x'hemm isem tiegħek?

379
00:17:36,475 --> 00:17:36,960
>> ANITA: Anita.

380
00:17:36,960 --> 00:17:37,655
>> DAVID J. Malan: Anita.

381
00:17:37,655 --> 00:17:38,613
Okay, sbieħ li jissodisfaw inti.

382
00:17:38,613 --> 00:17:41,010
Let me jintroduċu inti Rob Bowden.

383
00:17:41,010 --> 00:17:42,890
Dan huwa Anita.

384
00:17:42,890 --> 00:17:44,033
U dak huwa l-isem tiegħek?

385
00:17:44,033 --> 00:17:44,800
>> KIERSTEN: Kiersten

386
00:17:44,800 --> 00:17:46,020
>> DAVID J. Malan: Kiersten.

387
00:17:46,020 --> 00:17:49,790
Kiersten, come fuq up u
jilħqu Rob Bowden u Anita.

388
00:17:49,790 --> 00:17:51,036
Nizza li jissodisfaw inti.

389
00:17:51,036 --> 00:17:52,160
KIERSTEN: Nizza li jissodisfaw inti.

390
00:17:52,160 --> 00:17:53,368
DAVID J. Malan: Alright, Rob.

391
00:17:53,368 --> 00:17:54,650
ROB Bowden: Nizza li jissodisfaw inti.

392
00:17:54,650 --> 00:17:55,566
DAVID J. Malan: Anita.

393
00:17:55,566 --> 00:17:56,520
KIERSTEN: Hi Anita.

394
00:17:56,520 --> 00:17:58,686
DAVID J. Malan: U tiegħek
diversi mijiet klassi.

395
00:17:58,686 --> 00:18:02,490
Allura, issa let me imorru quddiem u iġbed
up biss sempliċi program hawn

396
00:18:02,490 --> 00:18:05,690
fuq Mac OS li ser let me
attwalment LOGHOME xi noti isfel.

397
00:18:05,690 --> 00:18:09,570
U jekk inti guys tixtieq li kull tieħu
pożizzjoni fuq waħda minn dawk l-iskejjel hemmhekk,

398
00:18:09,570 --> 00:18:16,360
let me imorru quddiem u tibda lista
tal-kodiċi pseudocode, jekk inti se.

399
00:18:16,360 --> 00:18:19,970
U dak li nixtieq li nagħmlu hawnhekk,
finalment, huwa tip għalik

400
00:18:19,970 --> 00:18:22,470
xi struzzjonijiet li tagħna
membri tal-udjenza huma attwalment

401
00:18:22,470 --> 00:18:23,569
ser recite għalina.

402
00:18:23,569 --> 00:18:25,860
Let me imorru quddiem u biss
tbiddel dan għal lista nnumerati

403
00:18:25,860 --> 00:18:27,720
biex jaqblu ma 'dak li aħna kienu qed jagħmlu up hemm.

404
00:18:27,720 --> 00:18:30,990
U dak li jien ser tagħmel ma
għajnuna tiegħek, huwa jikteb programm

405
00:18:30,990 --> 00:18:34,620
fil pseudocode, li magħhom
dawn guys huma għaddejjin

406
00:18:34,620 --> 00:18:38,150
biex timplimenta karawett
butir u sandwich jelly.

407
00:18:38,150 --> 00:18:40,880
Allura huwa forsi apropos li
juru xi ħaġa xi wħud minnkom

408
00:18:40,880 --> 00:18:44,560
tista raw fuq l-internet
għal ftit mument annoying qasira.

409
00:18:44,560 --> 00:18:47,650
>> [MUSIC BUCKEWHEAT BOYS, "butir tal-karawett
 JELLY TIME "]

410
00:18:47,650 --> 00:19:08,119

411
00:19:08,119 --> 00:19:08,910
DAVID J. Malan: OK.

412
00:19:08,910 --> 00:19:10,050
C'est biżżejjed ta 'dak.

413
00:19:10,050 --> 00:19:12,690
Allura hawnhekk sadanittant, I jkollhom
par ta 'Google Nuċċali li

414
00:19:12,690 --> 00:19:16,500
aħna ser jitqiegħdu fuq stess Rob Bowden CS50 tal
biex tara d-dinja permezz ta 'għajnejn tiegħu.

415
00:19:16,500 --> 00:19:19,140
U aħna ser nagħmlu l-almu tagħna fil-kariga
produzzjoni li attwalment nisġa

416
00:19:19,140 --> 00:19:23,100
l-footage ta 'dak Rob huwa jara
issa, fis dan lecture attwali

417
00:19:23,100 --> 00:19:26,420
video b'żewġ tagħna
voluntiera ħdejn lilu.

418
00:19:26,420 --> 00:19:28,480
Allura dak li jien ser tagħmel
huwa, I ser tkun l-shorthand.

419
00:19:28,480 --> 00:19:31,849
Għandna l-għan hawnhekk ta '
attwalment kitba ta 'programm

420
00:19:31,849 --> 00:19:34,640
li biex jagħmlu, finalment, ta '
butir tal-karawett u sandwich jelly,

421
00:19:34,640 --> 00:19:37,680
iżda dawn it-tliet huma ser jaġixxu
daqslikieku huma kompjuters.

422
00:19:37,680 --> 00:19:40,638
U kompjuters, fl-aħħar tal-ġurnata,
huma attwalment apparati pretty mutu.

423
00:19:40,638 --> 00:19:44,432
Huma qed super fast, iżda jistgħu biss
do, litteralment, dak li huma told.

424
00:19:44,432 --> 00:19:46,890
Inti ma tistax biss jgħidu tagħmel karawett
butir u sandwich jelly.

425
00:19:46,890 --> 00:19:48,640
Inti għandek għall-programm biex tagħmel dan.

426
00:19:48,640 --> 00:19:51,420
Int għandek jgħidulhom
bi preċiżjoni dak li tagħmel,

427
00:19:51,420 --> 00:19:54,400
inqas l-affarijiet imorru horribly u,
nisperaw, divertenti awry.

428
00:19:54,400 --> 00:19:57,460
>> Allura ma 'dak imsemmi, għandna bżonn
sejħa waħda-out mill-udjenza

429
00:19:57,460 --> 00:19:59,440
għal dak għandha żżid
waħda tkun, jekk l-għan hawnhekk

430
00:19:59,440 --> 00:20:01,356
huwa li tagħmel karawett
butir u sandwich jelly.

431
00:20:01,356 --> 00:20:01,910
Iva?

432
00:20:01,910 --> 00:20:03,647
>> UDJENZA: [inaudible] l-borża ta 'ħobż.

433
00:20:03,647 --> 00:20:05,230
DAVID J. Malan: Iftaħ il-borża ta 'ħobż.

434
00:20:05,230 --> 00:20:08,360
Mela jekk it-tliet kontestanti kieku
tixtieq li tipproċedi sabiex tagħmel dan litteralment.

435
00:20:08,360 --> 00:20:12,394
Iftaħ il-borża ta 'ħobż.

436
00:20:12,394 --> 00:20:15,810
>> [UDJENZA Laughing]

437
00:20:15,810 --> 00:20:20,717

438
00:20:20,717 --> 00:20:22,300
DAVID J. Malan: Mela ejja jaħdmu fuq dan.

439
00:20:22,300 --> 00:20:23,180
Kull dritt.

440
00:20:23,180 --> 00:20:25,400
Allura pass tnejn, how--
ejja tieħu din ulterjuri.

441
00:20:25,400 --> 00:20:26,480
Yeah, fl-quddiem.

442
00:20:26,480 --> 00:20:27,240
>> UDJENZA: [inaudible] il-ħobż.

443
00:20:27,240 --> 00:20:27,735
>> DAVID J. Malan: X'hemm li?

444
00:20:27,735 --> 00:20:28,836
>> UDJENZA: Neħħi l-ħobż.

445
00:20:28,836 --> 00:20:30,210
DAVID J. Malan: Neħħi l-ħobż.

446
00:20:30,210 --> 00:20:31,190
Bl-istess mod konċiż.

447
00:20:31,190 --> 00:20:33,667
Grazzi.

448
00:20:33,667 --> 00:20:43,777
>> [Applause]

449
00:20:43,777 --> 00:20:44,860
DAVID J. Malan: Li dan?

450
00:20:44,860 --> 00:20:48,830
OK, hekk pass tnejn qed jiġri
li tkun tneħħi l-ħobż.

451
00:20:48,830 --> 00:20:51,790
Alright, xi ħadd tixtieq li
tikteb lilna sentenza itwal?

452
00:20:51,790 --> 00:20:52,640
Xi ħadd ieħor?

453
00:20:52,640 --> 00:20:53,920
A ftit aktar [inaudible].

454
00:20:53,920 --> 00:20:54,810
Le, xejn issa.

455
00:20:54,810 --> 00:20:56,094
Iva?

456
00:20:56,094 --> 00:20:58,900
>> UDJENZA: Post tnejn
flieli ħdejn xulxin.

457
00:20:58,900 --> 00:21:03,575
>> DAVID J. Malan: Post tnejn
flieli ħdejn xulxin.

458
00:21:03,575 --> 00:21:06,420
>> [UDJENZA Laughing]

459
00:21:06,420 --> 00:21:09,590
>> DAVID J. Malan: Post tnejn
flieli ħdejn xulxin.

460
00:21:09,590 --> 00:21:11,334
Pass erbgħa.

461
00:21:11,334 --> 00:21:12,816
Iva?

462
00:21:12,816 --> 00:21:14,792
>> UDJENZA: Ħu tiegħek
idejn u sett huwa ħafif

463
00:21:14,792 --> 00:21:17,756
fuq quċċata ta 'l-għatu butir tal-karawett.

464
00:21:17,756 --> 00:21:19,710
>> [UDJENZA Laughing]

465
00:21:19,710 --> 00:21:21,710
UDJENZA: [inaudible]
li jmiss għall-butir tal-karawett.

466
00:21:21,710 --> 00:21:21,870
DAVID J. Malan: What?

467
00:21:21,870 --> 00:21:22,520
Jgħidu li għal darb'oħra.

468
00:21:22,520 --> 00:21:26,308
>> UDJENZA: Ħoll l-għatu u poġġi
bil-mod li jmiss għall-butir tal-karawett.

469
00:21:26,308 --> 00:21:31,490
>> DAVID J. Malan: Poġġi dan bil-mod
li jmiss għall-butir tal-karawett.

470
00:21:31,490 --> 00:21:37,770

471
00:21:37,770 --> 00:21:40,090
OK, progress.

472
00:21:40,090 --> 00:21:41,080
Pass ħamsa.

473
00:21:41,080 --> 00:21:42,380
Eċċellenti.

474
00:21:42,380 --> 00:21:43,261
Iva?

475
00:21:43,261 --> 00:21:44,163
>> Pick up sikkina.

476
00:21:44,163 --> 00:21:46,380

477
00:21:46,380 --> 00:21:47,630
DAVID J. Malan: Aqbad sikkina.

478
00:21:47,630 --> 00:21:52,320

479
00:21:52,320 --> 00:21:53,631
OK, pass sitta.

480
00:21:53,631 --> 00:21:54,130
Yeah?

481
00:21:54,130 --> 00:21:56,237
>> UDJENZA: Żomm sikkina mill-manku.

482
00:21:56,237 --> 00:21:57,945
DAVID J. Malan: Żomm
sikkina mill-manku.

483
00:21:57,945 --> 00:22:00,710

484
00:22:00,710 --> 00:22:03,230
Żomm sikkina mill-manku.

485
00:22:03,230 --> 00:22:04,880
Pass sebgħa.

486
00:22:04,880 --> 00:22:05,692
Iva?

487
00:22:05,692 --> 00:22:10,030
>> UDJENZA: sikkina [inaudible] fil-karawett
butir u kif ftit barra [inaudible].

488
00:22:10,030 --> 00:22:13,070
>> DAVID J. Malan: Poġġi sikkina in-- I
smajna "sikkina tpoġġi fil-butir tal-karawett

489
00:22:13,070 --> 00:22:19,500
u tieħu bħala ftit barra kemm jista 'jkun. "

490
00:22:19,500 --> 00:22:22,480
Mill-mod, neħħi l-karta l-ewwel.

491
00:22:22,480 --> 00:22:29,320

492
00:22:29,320 --> 00:22:31,890
Kull dritt, pass disa.

493
00:22:31,890 --> 00:22:34,910
Pass disa.

494
00:22:34,910 --> 00:22:35,624
Pass disa.

495
00:22:35,624 --> 00:22:37,290
Aħna ma attwalment magħmula sandwich s'issa.

496
00:22:37,290 --> 00:22:37,790
Iva?

497
00:22:37,790 --> 00:22:41,570
UDJENZA: Bl-użu sikkina fil-butir tal-karawett,
japplikaw butir tal-karawett fuq qal ħobż.

498
00:22:41,570 --> 00:22:47,440
>> DAVID J. Malan: Bl-użu sikkina fl
butir tal-karawett, japplikaw butir tal-karawett fuq

499
00:22:47,440 --> 00:22:48,736
qal ħobż.

500
00:22:48,736 --> 00:22:56,030
>> [UDJENZA Laughing]

501
00:22:56,030 --> 00:22:59,480
DAVID J. Malan: All pass dritt 10.

502
00:22:59,480 --> 00:23:01,762
Pass 10.

503
00:23:01,762 --> 00:23:02,750
Iva?

504
00:23:02,750 --> 00:23:05,220
>> UDJENZA: karawett Togħma
butir biex jiżguraw kwalità.

505
00:23:05,220 --> 00:23:15,960
>> [UDJENZA Laughing]

506
00:23:15,960 --> 00:23:16,960
DAVID J. Malan: Pass 11.

507
00:23:16,960 --> 00:23:19,500

508
00:23:19,500 --> 00:23:21,340
Pass 11.

509
00:23:21,340 --> 00:23:22,101
Pass 11.

510
00:23:22,101 --> 00:23:22,600
Come fuq.

511
00:23:22,600 --> 00:23:23,099
Yeah?

512
00:23:23,099 --> 00:23:24,208
Hemm dritt.

513
00:23:24,208 --> 00:23:25,840
>> UDJENZA: B'attenzjoni pick up jelly.

514
00:23:25,840 --> 00:23:28,220
>> DAVID J. Malan: B'attenzjoni pick up jelly.

515
00:23:28,220 --> 00:23:29,970
OK, u mbagħad idejn ieħor kien sa.

516
00:23:29,970 --> 00:23:32,812

517
00:23:32,812 --> 00:23:33,520
Dritt lura int.

518
00:23:33,520 --> 00:23:35,761
Yeah, bil-blu.

519
00:23:35,761 --> 00:23:40,671
>> UDJENZA: Kull dritt, neħħi
għatu minn [inaudible], yeah,

520
00:23:40,671 --> 00:23:42,635
neħħi l-għatu mill-jelly.

521
00:23:42,635 --> 00:23:43,617
>> [UDJENZA Laughing]

522
00:23:43,617 --> 00:23:44,742
>> DAVID J. Malan: Mill jelly.

523
00:23:44,742 --> 00:23:45,581
Ha ha.

524
00:23:45,581 --> 00:23:48,967
>> [UDJENZA Laughing]

525
00:23:48,967 --> 00:23:49,800
DAVID J. Malan: U?

526
00:23:49,800 --> 00:23:52,490
UDJENZA: U bilkemm
jiknes kwalunkwe [inaudible].

527
00:23:52,490 --> 00:23:59,536
[UDJENZA Laughing]

528
00:23:59,536 --> 00:24:04,456
UDJENZA: Of course, qabel [inaudible],
neħħi l-karta mill jelly.

529
00:24:04,456 --> 00:24:06,940
DAVID J. Malan: Neħħi karta mill jelly.

530
00:24:06,940 --> 00:24:08,229
Pass 14.

531
00:24:08,229 --> 00:24:09,020
Aħna kważi hemm.

532
00:24:09,020 --> 00:24:09,857
Iva?

533
00:24:09,857 --> 00:24:12,600
>> UDJENZA: Aqleb flixkun jelly
qabel kollox jaqa 'barra.

534
00:24:12,600 --> 00:24:16,515
>> DAVID J. Malan: jelly Aqleb
flixkun qabel jelly jaqa 'barra.

535
00:24:16,515 --> 00:24:19,070

536
00:24:19,070 --> 00:24:19,890
Pass 15.

537
00:24:19,890 --> 00:24:21,130
>> UDJENZA: Issostitwixxi l-għatu.

538
00:24:21,130 --> 00:24:22,463
>> DAVID J. Malan: Issostitwixxi l-għatu.

539
00:24:22,463 --> 00:24:25,880

540
00:24:25,880 --> 00:24:28,190
Pass 16.

541
00:24:28,190 --> 00:24:28,931
Yeah?

542
00:24:28,931 --> 00:24:29,806
>> UDJENZA: [inaudible]

543
00:24:29,806 --> 00:24:34,109

544
00:24:34,109 --> 00:24:35,400
DAVID J. Malan: Say li għal darb'oħra.

545
00:24:35,400 --> 00:24:38,100
UDJENZA: Ħu għatu off ta 'jelly tiegħek.

546
00:24:38,100 --> 00:24:39,650
DAVID J. Malan: Off jelly tiegħek.

547
00:24:39,650 --> 00:24:43,720

548
00:24:43,720 --> 00:24:49,510
Allura really-- Oops.

549
00:24:49,510 --> 00:24:50,420
Come fuq.

550
00:24:50,420 --> 00:24:51,740
Issostitwixxi l-għatu.

551
00:24:51,740 --> 00:24:56,660
Poġġi cap-- You qal
Neħħi l-għatu mill-jelly.

552
00:24:56,660 --> 00:24:58,950
Jħossu bħal aħna qed fil-daqsxejn ta 'loop.

553
00:24:58,950 --> 00:24:59,640
Pass 17.

554
00:24:59,640 --> 00:25:00,398
Iva?

555
00:25:00,398 --> 00:25:02,639
>> UDJENZA: [inaudible]

556
00:25:02,639 --> 00:25:03,930
DAVID J. Malan: Say li għal darb'oħra.

557
00:25:03,930 --> 00:25:05,150
UDJENZA: [inaudible]

558
00:25:05,150 --> 00:25:07,835
DAVID J. Malan: Mur lura għall step--

559
00:25:07,835 --> 00:25:10,110
UDJENZA: [inaudible]

560
00:25:10,110 --> 00:25:13,760
DAVID J. Malan: Neħħi
għatu mill-butir tal-karawett.

561
00:25:13,760 --> 00:25:14,492
Iva?

562
00:25:14,492 --> 00:25:16,430
>> UDJENZA: Drop l-
jelly fuq il-ħobż.

563
00:25:16,430 --> 00:25:19,040
>> DAVID J. Malan: Drop kollha
il-jelly fuq il-ħobż.

564
00:25:19,040 --> 00:25:25,372

565
00:25:25,372 --> 00:25:26,830
DAVID J. Malan: Aħna kważi hemm.

566
00:25:26,830 --> 00:25:27,800
Pass 19.

567
00:25:27,800 --> 00:25:30,250
>> UDJENZA: Neħħi jelly żejjed.

568
00:25:30,250 --> 00:25:31,720
>> DAVID J. Malan: Haha, jelly.

569
00:25:31,720 --> 00:25:36,615
>> [Applause]

570
00:25:36,615 --> 00:25:39,240
DAVID J. Malan: Għaliex ma we--
wieħed pass aktar biex jieħu din id-dar.

571
00:25:39,240 --> 00:25:41,720
Wieħed pass aktar u mbagħad
aħna ser iservu sandwiches.

572
00:25:41,720 --> 00:25:42,900
Iva?

573
00:25:42,900 --> 00:25:45,570
>> UDJENZA: [inaudible]

574
00:25:45,570 --> 00:25:50,704
>> DAVID J. Malan: Filwaqt kwalunkwe sandwich
inċiż let remains-- tal this-- jieklu.

575
00:25:50,704 --> 00:25:56,400
>> [Rires UDJENZA]

576
00:25:56,400 --> 00:26:00,395
>> DAVID J. Malan: Kull dritt, nirringrazzja
inti voluntiera tagħna hawn.

577
00:26:00,395 --> 00:26:06,150
>> [Applause}

578
00:26:06,150 --> 00:26:08,940
>> DAVID J. Malan: Għandna xi sympathique
firda rigali għal kull minnkom.

579
00:26:08,940 --> 00:26:14,350
Butir tal-karawett tiegħek, jelly,
u ħobż biex iġibu lura d-dar.

580
00:26:14,350 --> 00:26:15,774
Grazzi.

581
00:26:15,774 --> 00:26:17,118
>> KIERSTEN: Grazzi.

582
00:26:17,118 --> 00:26:18,618
DAVID J. Malan: [inaudible] milqugħa.

583
00:26:18,618 --> 00:26:21,849
[Applause]

584
00:26:21,849 --> 00:26:24,390
DAVID J. Malan: Allura, dan huwa,
Naturalment, eżempju redikoli.

585
00:26:24,390 --> 00:26:24,890
Right?

586
00:26:24,890 --> 00:26:28,890
Iżda dan ma tip ta 'juri kif aħna
bnedmin ħu ċarezza għall mogħtija.

587
00:26:28,890 --> 00:26:30,890
U l-fatt stajt ġiet
tkellem lil bniedem ieħor,

588
00:26:30,890 --> 00:26:33,300
hu jew hi biss jaf dak li jfisser.

589
00:26:33,300 --> 00:26:35,220
>> Kompjuters mhumiex ser
li tkun taf dak li jfisser,

590
00:26:35,220 --> 00:26:37,430
anke meta jużaw, bħala
aħna qed waslu biex jagħmlu llum,

591
00:26:37,430 --> 00:26:42,300
programmazzjoni xi ħaġa fil Scratch, drag
u qatra, lingwa stil biċċa puzzle.

592
00:26:42,300 --> 00:26:44,310
Anke mfassla għall żgħażagħ
tfal, għandek

593
00:26:44,310 --> 00:26:48,726
li jkun hekk espliċitu u hekk litterali ma
dak li trid program tiegħek biex tagħmel.

594
00:26:48,726 --> 00:26:50,600
Issa finalment, aħna qed
ser ikunu programmazzjoni

595
00:26:50,600 --> 00:26:53,550
mhux fil-kodiċi pseudocode,
Ingliż bħall sintassi,

596
00:26:53,550 --> 00:26:56,370
imma kodiċi jew, b'mod aktar xieraq, kodiċi sors.

597
00:26:56,370 --> 00:26:59,260
Kodiċi tas-sors huwa biss il-mod fancy
għad-deskrizzjoni kodiċi inti fil-fatt

598
00:26:59,260 --> 00:27:01,730
jiktbu bil-keyboard li l-
mhux bl-Ingliż per se.

599
00:27:01,730 --> 00:27:06,480
Huwa fis-C jew Java jew C ++ jew xi ħaġa
bħal dik, kif aħna ser dalwaqt tara.

600
00:27:06,480 --> 00:27:09,510
>> U fil-fatt, biss biex biża ta '
Ftit tal inti, ewwel daqqa t'għajn,

601
00:27:09,510 --> 00:27:13,769
dan huwa programm miktub f'lingwa
imsejħa C. Iżda biex un-biża ftit tal inti,

602
00:27:13,769 --> 00:27:15,560
inti se kompletament
jifhmu x'inhu għaddej

603
00:27:15,560 --> 00:27:18,980
fuq come Tnejn li jmiss meta
niġu għal xi ħaġa bħal din.

604
00:27:18,980 --> 00:27:20,510
Franchement, dan huwa lingwa anzjani.

605
00:27:20,510 --> 00:27:22,430
Huwa pjuttost arcane,
imma hija rappreżentattiva

606
00:27:22,430 --> 00:27:26,120
ta 'lott ta' lingwi dawn il-jiem li
jkollhom lottijiet ta 'parentesi u kaboċċi

607
00:27:26,120 --> 00:27:28,630
braces u marki kwotazzjoni u semicolons.

608
00:27:28,630 --> 00:27:30,780
U ħafna ta 'dan
Jittieħed sintattika li mhix

609
00:27:30,780 --> 00:27:32,450
fil-livelli kollha intellettwalment interessanti.

610
00:27:32,450 --> 00:27:35,790
Tabilħaqq, huwa ta 'distrazzjoni utter
mill-ideat sempliċi ħafna

611
00:27:35,790 --> 00:27:37,370
li huma tluq magħna fil-wiċċ.

612
00:27:37,370 --> 00:27:41,760
Dan il-programm, kif inti tista 'biss raden,
prints għal iskrin tal-kompjuter ta 'xi ħadd

613
00:27:41,760 --> 00:27:44,070
il-kliem "virgola Hello dinja."

614
00:27:44,070 --> 00:27:44,860
Li dan.

615
00:27:44,860 --> 00:27:46,580
Allura ċar, hemm
lott ta 'għalf li l-

616
00:27:46,580 --> 00:27:48,970
jkollna fil-mod ta '
xi obviousness hemmhekk,

617
00:27:48,970 --> 00:27:52,490
iżda li għaddej biex malajr ħafna slip
bogħod u tkun kompletament intuwittivi.

618
00:27:52,490 --> 00:27:55,617
>> Tabilħaqq, dak li aħna qed tmur biex tagħmel
llum hija jiddistillaw dan pjuttost kumpless

619
00:27:55,617 --> 00:27:58,950
programm tfittex, li għal darb'oħra inti ser jiġu
biex jifhmu malajr, iżda għal xi ħaġa

620
00:27:58,950 --> 00:27:59,710
ferm aktar sempliċi.

621
00:27:59,710 --> 00:28:01,640
Ejja ngħidu biss dak li rridu nfissru.

622
00:28:01,640 --> 00:28:05,590
Ejja tfassal stampa ta 'dak li jfisser,
permezz ta 'dawn il-biċċiet puzzle hawn.

623
00:28:05,590 --> 00:28:09,110
>> Allura dan huwa l-ipprogrammar
lingwa magħrufa bħala Scratch.

624
00:28:09,110 --> 00:28:11,080
Hija ġiet żviluppata minn Media Lab MIT.

625
00:28:11,080 --> 00:28:14,830
U dak li inti ser tara fil-problema sett żero,
li se jiġu rilaxxati aktar tard tonight,

626
00:28:14,830 --> 00:28:18,980
aħna ser ikollhom inti tmur biex dan
URL hawn scratch.mit.edu.

627
00:28:18,980 --> 00:28:20,940
U dawn ikollhom web
interface bbażati via li

628
00:28:20,940 --> 00:28:22,540
inti se jikteb ewwel programm tiegħek.

629
00:28:22,540 --> 00:28:25,330
Jew dawk tal inti ma qabel
esperjenza, it-tieni programmi tiegħek,

630
00:28:25,330 --> 00:28:28,090
iżda f'ambjent li huwa
probabbilment ftit familjari u dik

631
00:28:28,090 --> 00:28:32,930
se push inti biex joħolqu xi ħaġa
jużaw dan l-ambjent ħafna viżwali.

632
00:28:32,930 --> 00:28:35,940
>> Issa, dak li jien ser tagħmel hawn
huwa tiftaħ il-programm innifsu.

633
00:28:35,940 --> 00:28:41,911
Hija teżisti mhux biss bħala web browser,
iżda wkoll bħala programm downloaded

634
00:28:41,911 --> 00:28:44,660
sabiex inti tista 'attwalment jużaw dan
jekk inti ma għandekx aċċess għall-internet.

635
00:28:44,660 --> 00:28:46,743
U jien ser tagħmel dan
fil hawn, fl Sanders, biss

636
00:28:46,743 --> 00:28:49,580
f'każ li l-Wi-Fi ma
jikkooperaw super tajjeb.

637
00:28:49,580 --> 00:28:52,640
U dak li jien ser tagħmel hu punt
out ftit karatteristiċi ta 'dan il-programm.

638
00:28:52,640 --> 00:28:55,720
Allura, biex tkun ċara, I jkollhom biss double
għafast l-ikona fuq id-desktop tiegħi,

639
00:28:55,720 --> 00:28:59,830
jew ekwivalenti marret għall scratch.mit.edu,
u huwa miġbud sa dan il-tieqa.

640
00:28:59,830 --> 00:29:01,650
Dan huwa ambjent programmazzjoni.

641
00:29:01,650 --> 00:29:04,110
Huwa biċċa ta 'softwer li
xi wħud mill-ħbieb tagħna fil MIT

642
00:29:04,110 --> 00:29:08,850
kiteb li ejja us u tikteb
programmi b'lingwa imsejħa scratch.

643
00:29:08,850 --> 00:29:12,010
>> Issa dan jiġri li jkun
qattus li wkoll jismu Scratch

644
00:29:12,010 --> 00:29:13,890
u dan huwa tiegħu dinja li jgħix fiha.

645
00:29:13,890 --> 00:29:17,175
Dan huwa l-istadju, biex ngħidu hekk, li
rettangolu fuq il-kantuniera ta 'fuq tax-xellug.

646
00:29:17,175 --> 00:29:18,800
U hu ma jkollhom dehra ta 'qattus.

647
00:29:18,800 --> 00:29:20,591
Inti tista 'tagħmel lilu ħarsa
bħal kull ħaġa u inti

648
00:29:20,591 --> 00:29:23,700
jista 'jkollhom ħafna sprites bħal dawn,
jew karattri, fi programm.

649
00:29:23,700 --> 00:29:27,450
Sadanittant, matul hawn fuq il-bogħod
dritt, huwa lavanja vojt big.

650
00:29:27,450 --> 00:29:30,260
U dan huwa fejn, fil-mument,
aħna ser tibda l-ipprogrammar

651
00:29:30,260 --> 00:29:32,750
billi jittrattienu u twaqqa
dawn puzzle grafika

652
00:29:32,750 --> 00:29:35,300
biċċiet li huma tajba
hawn fin-nofs.

653
00:29:35,300 --> 00:29:38,140
U hemm mod aktar minnhom minn
aħna ser jqattgħu ħin fuq hawn fil-klassi

654
00:29:38,140 --> 00:29:40,080
għaliex inti ser issib li
dawn qed kollha pjuttost intuwittivi.

655
00:29:40,080 --> 00:29:41,788
Għal darb'oħra, huwa ddisinjat
għat-tfal, iżda aħna

656
00:29:41,788 --> 00:29:45,759
jużawha biex tease apparti xi wħud minn dawk
ideat fundamentali ta 'varjabbli, loops,

657
00:29:45,759 --> 00:29:48,050
kondizzjonijiet, u, dalwaqt, l-affarijiet
bħall-funzjonijiet u avvenimenti

658
00:29:48,050 --> 00:29:51,810
u ħjut u affarijiet oħra fancy aħna ser
jiksbu biex qabel twil biex effettivament joħolqu

659
00:29:51,810 --> 00:29:53,840
xi ħaġa minn Scratch.

660
00:29:53,840 --> 00:29:54,810
Pun maħsuba.

661
00:29:54,810 --> 00:29:58,740
>> Issa, dak li jien ser tagħmel hawnhekk hija
ikklikkja fuq mhux mozzjoni, iżda l-kontroll.

662
00:29:58,740 --> 00:30:01,400
U dan huwa biss
kategorizzazzjoni tal here--

663
00:30:01,400 --> 00:30:03,150
u nara differenti
kulur sett ta 'blokki.

664
00:30:03,150 --> 00:30:05,030
Iżda avviż kliem familjari ftit.

665
00:30:05,030 --> 00:30:07,830
"Jekk" u "inkella jekk" u "ripetuti."

666
00:30:07,830 --> 00:30:10,440
U inti tista 'probabbilment raden
thats reminixxenti tal-fergħa,

667
00:30:10,440 --> 00:30:12,870
jew il-kondizzjonijiet rajna, u
anke-kostrutt looping.

668
00:30:12,870 --> 00:30:14,760
Allura aħna għandna blokki simili hawn.

669
00:30:14,760 --> 00:30:16,720
Iżda l-aktar interessanti
wieħed huwa dan wieħed hawn.

670
00:30:16,720 --> 00:30:20,690
Meta din il-bandiera aħdar huwa għafast,
dan, għal dawk programing minn qabel

671
00:30:20,690 --> 00:30:23,110
esperjenza, huwa ekwivalenti
għal funzjoni prinċipali.

672
00:30:23,110 --> 00:30:25,300
Iżda għal dawk familjari,
dan huwa l-biċċa puzzle

673
00:30:25,300 --> 00:30:27,320
li se tagħti bidu program kollu tagħna.

674
00:30:27,320 --> 00:30:31,350
Huwa letteralment ifisser meta mmur, f'dan
programm, u ikklikkja flag-- aħdar

675
00:30:31,350 --> 00:30:35,560
li tista 'tara up here fil-
rokna tax-xellug ta 'fuq tal-UI,

676
00:30:35,560 --> 00:30:38,570
hekk tara l-bandiera aħdar
li jmiss għall-sinjal waqfien aħmar?

677
00:30:38,570 --> 00:30:41,475
Meta I ikklikkja li, tiegħi
programm se run.

678
00:30:41,475 --> 00:30:43,850
Issa, jien ser tagħmel xi ħaġa
super sempliċi ma Scratch.

679
00:30:43,850 --> 00:30:46,640
Jien ser jimxi 'l quddiem
u jmorru l-panel jistenna

680
00:30:46,640 --> 00:30:50,010
hawn, fejn għandi mazz
ta 'biċċiet puzzle vjola,

681
00:30:50,010 --> 00:30:53,887
u jien ser jimxi 'l quddiem u jagħmlu
xi ħaġa super sempliċi bħal, ngħidu.

682
00:30:53,887 --> 00:30:55,720
U avviż then-- dan
test fil-kaxxa bajda

683
00:30:55,720 --> 00:30:59,290
huwa editable-- jien ser ngħid
"Hello dinja," bħad aħna

684
00:30:59,290 --> 00:31:01,470
għamlet f'dak testwali
Verżjoni mument ilu.

685
00:31:01,470 --> 00:31:05,920
U issa jekk immur u kklikkja dan
bandiera aħdar, I issa jkunu programmati.

686
00:31:05,920 --> 00:31:07,810
Mhuwiex partikolarment
programm interessanti,

687
00:31:07,810 --> 00:31:09,760
imma I magħmula l-kompjuter tagħmel xi ħaġa.

688
00:31:09,760 --> 00:31:13,120
I bdew programm u
ma dak I told li tagħmel.

689
00:31:13,120 --> 00:31:16,170
Issa, I jistgħu jkomplu drag u qatra
aktar u aktar ta 'dawn il-biċċiet puzzle

690
00:31:16,170 --> 00:31:19,220
u dawn qed tmur biex jorbtu ma 'xulxin, iżda
ejja SLAP xi terminoloġija hawn fuq

691
00:31:19,220 --> 00:31:21,680
li aħna ser tara rikorrenti
matul il-kors,

692
00:31:21,680 --> 00:31:24,610
u verament matul xjenza tal-kompjuter
u l-ipprogrammar aktar ġenerali.

693
00:31:24,610 --> 00:31:27,990
>> Dan "jgħidu" blokk, vjola, ejja
biss tibda ssejjaħ dikjarazzjoni.

694
00:31:27,990 --> 00:31:29,240
Huwa bħal dikjarazzjoni ta 'fatt.

695
00:31:29,240 --> 00:31:30,380
Agħmel dan.

696
00:31:30,380 --> 00:31:32,590
Għalhekk, huwa kategorija ta '
istruzzjonijiet li inti

697
00:31:32,590 --> 00:31:36,760
jista għalf kompjuter bħala parti
ta 'programm jew algoritmu.

698
00:31:36,760 --> 00:31:39,270
U biex tkun ċara, inti stajt
probabbilment meħuda għall mogħtija

699
00:31:39,270 --> 00:31:41,930
li inti għandek programmi fuq il-kompjuter tiegħek.

700
00:31:41,930 --> 00:31:45,850
U dawn qed tip ta 'algoritmi, iżda
programm huwa verament mazz ta 'algoritmi

701
00:31:45,850 --> 00:31:47,160
li xi bnedmin kiteb.

702
00:31:47,160 --> 00:31:49,040
Huma ppakkjati it up u
huma mibjugħa sabiex inti,

703
00:31:49,040 --> 00:31:51,330
jew huma stazzjonati fuq websajt
għalik biex tniżżel.

704
00:31:51,330 --> 00:31:54,930
Allura, a program huwa biss
mazz sħiħ ta 'żerijiet u dawk

705
00:31:54,930 --> 00:31:56,970
li, b'xi mod, il-bnedmin maħluqa.

706
00:31:56,970 --> 00:32:00,080
U dawk mudelli ta 'żerijiet u
dawk jirrappreżentaw affarijiet, finalment,

707
00:32:00,080 --> 00:32:04,030
bħal "jgħidu bonjour dinja" jew "play
din il-mużika "jew" play dan il-video "

708
00:32:04,030 --> 00:32:05,129
jew "ibgħat email."

709
00:32:05,129 --> 00:32:06,920
Iżda aħna ser terga 'lura fl
mod f'aktar dettall liema

710
00:32:06,920 --> 00:32:08,780
programm huwa meta inti,
yourself, jiktbu għalihom.

711
00:32:08,780 --> 00:32:11,320
>> Hawn statement-- ieħor
"Stenna għat-tieni wieħed."

712
00:32:11,320 --> 00:32:14,330
I ma jużaw dan s'issa, iżda jekk irrid
programm tiegħi biex nieqaf għal mument

713
00:32:14,330 --> 00:32:16,540
biex jagħmel xi ħaġa, I jista 'jgħidlek biex tagħmel dan.

714
00:32:16,540 --> 00:32:18,450
Stenna tieni waħda.

715
00:32:18,450 --> 00:32:20,150
Issa wieħed ieħor jista 'jkun "ħoss play."

716
00:32:20,150 --> 00:32:23,270
Allura, dan huwa uniku għall Scratch, dan
għandu l-abbiltà li jilagħbu ħsejjes.

717
00:32:23,270 --> 00:32:26,130
Allura, dikjarazzjoni I jista
użu, hawn, "ħoss play."

718
00:32:26,130 --> 00:32:29,530
Sadanittant, l-espressjoni Boolean,
għalhekk din hija kelma fancier

719
00:32:29,530 --> 00:32:34,490
imsemmija wara biss Guy jismu Mr bool,
u din hija kollha dwar kwistjoni.

720
00:32:34,490 --> 00:32:37,470
Veru jew false-- huwa l-maws 'l isfel?

721
00:32:37,470 --> 00:32:41,100
A espressjoni Boolean huwa biss
xi espressjoni bl-Ingliż

722
00:32:41,100 --> 00:32:42,860
li huwa jew vera jew falza.

723
00:32:42,860 --> 00:32:44,140
Jew fuq jew barra.

724
00:32:44,140 --> 00:32:45,130
Jew wieħed jew żero.

725
00:32:45,130 --> 00:32:46,960
Inti tista 'taħseb li
fi kwalunkwe numru ta 'modi,

726
00:32:46,960 --> 00:32:49,220
imma huwa la vera jew
dan falza, finalment.

727
00:32:49,220 --> 00:32:52,540
Allura "maws 'l isfel mark mistoqsija,"
li jkun espressjoni Boolean.

728
00:32:52,540 --> 00:32:54,300
U inti tista 'taħseb ta' oħrajn, forsi.

729
00:32:54,300 --> 00:32:57,510
Per eżempju, "huwa n-numru xellug
anqas min-numru dritt? "

730
00:32:57,510 --> 00:32:59,410
Li, wisq, ikun
espressjoni Boolean.

731
00:32:59,410 --> 00:33:01,540
"Inqas minn" hija espressjoni Boolean.

732
00:33:01,540 --> 00:33:03,280
>> Dan wieħed, wisq, "mouse pointer jmissux."

733
00:33:03,280 --> 00:33:05,196
M'inix ċert għaliex dawn
sejħitilha mouse pointer.

734
00:33:05,196 --> 00:33:08,430
Dan ifisser biss, hija l-cursor, huwa l-
vleġġa fuq l-iskrin, li jmissu l-qattus,

735
00:33:08,430 --> 00:33:09,022
per eżempju.

736
00:33:09,022 --> 00:33:10,480
Jew xi aspett ieħor ta 'l-iskrin.

737
00:33:10,480 --> 00:33:13,710
U huwa kwistjoni, għal darb'oħra, u
li jiddenota espressjoni Boolean.

738
00:33:13,710 --> 00:33:17,130
Xi ħaġa li inti tista '
tixtieq li tuża f'kundizzjoni.

739
00:33:17,130 --> 00:33:19,100
Allura aħna ser jaslu għal dan fi ftit mument.

740
00:33:19,100 --> 00:33:20,350
Tista "u" affarijiet flimkien.

741
00:33:20,350 --> 00:33:23,099
Għalhekk, jekk inti tixtieq li jiċċekkjaw jekk dan
huwa l-każ u li huwa l-każ,

742
00:33:23,099 --> 00:33:25,580
inti tista 'tuża "u" block bħal dan.

743
00:33:25,580 --> 00:33:26,850
U hawnhekk dik il-kundizzjoni.

744
00:33:26,850 --> 00:33:31,290
Avviż tal-forma tal-ftuħ ftit
fil-quċċata ta 'din il-biċċa puzzle isfar,

745
00:33:31,290 --> 00:33:34,480
huwa reminixxenti tal-forma
li aħna biss raw mument ilu.

746
00:33:34,480 --> 00:33:37,920
Kull wieħed minn dawn l-espressjonijiet Boolean
jkollhom dawn truf osservat

747
00:33:37,920 --> 00:33:39,030
fuq ix-xellug u lemin.

748
00:33:39,030 --> 00:33:43,140
U dan għaliex folks MIT iddeċieda
li permezz ta 'forom viżwalment ġarr,

749
00:33:43,140 --> 00:33:45,780
inti tista 'tip ta' tgħin lin-nies,
studenti u tfal ukoll,

750
00:33:45,780 --> 00:33:47,650
għall tip ta 'timla l-vojt litteralment.

751
00:33:47,650 --> 00:33:49,780
>> Issa li puzzle-- li
ftuħ huwa ftit żgħira,

752
00:33:49,780 --> 00:33:52,750
u kif aħna ser tara fil-programm,
fil Scratch, se jikber biex tajbin.

753
00:33:52,750 --> 00:33:54,830
Hija se żżomm il-forma tagħha, finalment.

754
00:33:54,830 --> 00:33:58,350
So kundizzjoni ejja inti tiddeċiedi
"Nagħmel xi ħaġa jew le?"

755
00:33:58,350 --> 00:34:00,470
A espressjoni Boolean
hija l-kwistjoni attwali

756
00:34:00,470 --> 00:34:04,100
inti qed tuża biex tiddeċiedi nista mur
l-OR xellug do mmur lejn il-lemin

757
00:34:04,100 --> 00:34:06,710
meta I jiltaqgħu dan
hekk imsejħa furketta fit-triq?

758
00:34:06,710 --> 00:34:07,980
Inti jista 'jkollhom żewġ fergħat.

759
00:34:07,980 --> 00:34:10,909
Jekk xi ħaġa huwa veru, do
dan, inkella mur il-mod,

760
00:34:10,909 --> 00:34:14,590
jew tista 'biss tagħmel xejn fuq
kollu, dan blokk implikat.

761
00:34:14,590 --> 00:34:16,360
Bl-istess mod, nistgħu bejta dawn l-affarijiet.

762
00:34:16,360 --> 00:34:20,204
Mela jekk inti tixtieq li jittripplika furketta fil-
triq, jew jagħmlu dan jew dan jew dak,

763
00:34:20,204 --> 00:34:21,870
Tista 'biss bejta dawn l-affarijiet flimkien.

764
00:34:21,870 --> 00:34:24,520
U tibda tikseb ftit
ikrah, eventwalment, għall-żgur,

765
00:34:24,520 --> 00:34:26,120
iżda l-loġika għadu l-istess.

766
00:34:26,120 --> 00:34:28,000
Tista 'litteralment taqra
dan fuq għal isfel

767
00:34:28,000 --> 00:34:33,290
u jgħid dak li means-- jekk dan
huwa veru, tagħmel dan, inkella jekk inkella.

768
00:34:33,290 --> 00:34:36,179
>> A loop ma jiksbu aktar sempliċi fil Scratch.

769
00:34:36,179 --> 00:34:37,422
Forever tagħmel dan li ġej.

770
00:34:37,422 --> 00:34:39,880
Issa inti tista 'ma taħseb
tista 'tagħmel ħafna għaliex hemm mhux

771
00:34:39,880 --> 00:34:42,839
ħafna spazju bejn il-quċċata u l-
qiegħ ta 'dan il-ftuħ biċċa puzzle.

772
00:34:42,839 --> 00:34:45,671
Imma inti taf tara Scratch se
jikbru li tajbin biċċiet puzzle ħafna

773
00:34:45,671 --> 00:34:47,060
kif inti tixtieq CRAM fil hemmhekk.

774
00:34:47,060 --> 00:34:48,960
Loop oħra tista 'tkun
espressa bil jirrepeti.

775
00:34:48,960 --> 00:34:51,590
Jekk inti taf minn qabel, "I
trid tagħmel xi ħaġa 10 darbiet, "

776
00:34:51,590 --> 00:34:54,010
inti tista 'biss tell Scratch
li tagħmel xi ħaġa 10 darbiet.

777
00:34:54,010 --> 00:34:57,260
U, sadanittant, nistgħu jkollhom varjabbli.

778
00:34:57,260 --> 00:34:59,572
Allura hawnhekk wieħed arbitrarja,
huwa oranġjo f'dan il-każ,

779
00:34:59,572 --> 00:35:00,780
u dan huwa tour whirlwind.

780
00:35:00,780 --> 00:35:04,540
Għal darb'oħra, inti ser issib dan ħafna aċċessibbli
ladarba tibda tipponta u tikklikkja.

781
00:35:04,540 --> 00:35:07,930
Stajt jismu n varjabbli tiegħi, imma I
setgħet imsemmija hija xejn nixtieq,

782
00:35:07,930 --> 00:35:11,280
u jien iffissar hawnhekk, fil-
dan l-eżempju arbitrarja, għal żero.

783
00:35:11,280 --> 00:35:14,250
>> Issa jaraw programm bħal bonjour
dinja mhux kollha li konvinċenti,

784
00:35:14,250 --> 00:35:17,900
Mela ejja attwalment jiftħu xi ħaġa
li student eks magħmula.

785
00:35:17,900 --> 00:35:23,100
Let me imorru quddiem u tiftaħ,
per eżempju, dan wieħed hawn,

786
00:35:23,100 --> 00:35:26,780
għal liema Nixtieq imħabba
li jkollhom voluntier.

787
00:35:26,780 --> 00:35:28,450
Kull dritt, kif about-- ejja go farther.

788
00:35:28,450 --> 00:35:29,240
Iva, come fuq up.

789
00:35:29,240 --> 00:35:30,056
X'hemm isem tiegħek?

790
00:35:30,056 --> 00:35:30,635
>> Abby: Abby.

791
00:35:30,635 --> 00:35:32,010
DAVID J. Malan: Abby, come fuq up.

792
00:35:32,010 --> 00:35:35,930
Allura qatt lagħbu
din il-logħba qabel?

793
00:35:35,930 --> 00:35:36,430
Abby: No

794
00:35:36,430 --> 00:35:37,370
DAVID J. Malan: Kull dritt.

795
00:35:37,370 --> 00:35:38,380
David, sbieħ li jissodisfaw inti.

796
00:35:38,380 --> 00:35:39,620
Come fuq matul.

797
00:35:39,620 --> 00:35:42,300
U dak huwa l-ipprogrammar tiegħek
isfond, jekk ikun hemm.

798
00:35:42,300 --> 00:35:43,914
>> Abby: Stajt tgħallmu xi C ++.

799
00:35:43,914 --> 00:35:45,580
DAVID J. Malan: You ħadthom tgħallmu xi C ++.

800
00:35:45,580 --> 00:35:48,382
U dak li huwa logħba tiegħek
playing isfond?

801
00:35:48,382 --> 00:35:49,505
>> Abby: Mhux ħafna.

802
00:35:49,505 --> 00:35:51,130
DAVID J. Malan: OK, hekk aħna ser jieħdu dik.

803
00:35:51,130 --> 00:35:52,700
Allura hawnhekk kif il-logħba ikun sejjer jaħdem.

804
00:35:52,700 --> 00:35:54,510
Jien ser jimxi 'l quddiem u
ikklikkja l-bandiera aħdar, li

805
00:35:54,510 --> 00:35:55,830
huwa up hawn fil-kantuniera.

806
00:35:55,830 --> 00:35:59,710
Issa predeċessur tiegħek fil-klassi
tak xi struzzjonijiet hawn.

807
00:35:59,710 --> 00:36:02,306
U fi ftit mument, huwa
jgħid "spazju biex tibda."

808
00:36:02,306 --> 00:36:03,680
Allura aqbad u laqat l-spacebar.

809
00:36:03,680 --> 00:36:05,507
>> GAME KOMPJUTER: Pikachu.

810
00:36:05,507 --> 00:36:08,340
DAVID J. Malan: U l-għan huwa li
jaqbdu l-ikel, kif muri hemm

811
00:36:08,340 --> 00:36:09,320
fuq ix-xellug.

812
00:36:09,320 --> 00:36:11,388
U biex [inaudible]

813
00:36:11,388 --> 00:36:15,356
>> [MUSIC jilagħbu logħba]

814
00:36:15,356 --> 00:36:27,280

815
00:36:27,280 --> 00:36:29,610
>> DAVID J. Malan: AWW, ukoll,
thank you for playing.

816
00:36:29,610 --> 00:36:32,800
Għandna hawn ftit
firda rigal għalik.

817
00:36:32,800 --> 00:36:35,574
Għandna CS50 stress ball,
jekk inti tixtieq li jagħżlu.

818
00:36:35,574 --> 00:36:36,820
Kull dritt, tajba biex jissodisfaw inti.

819
00:36:36,820 --> 00:36:39,680
Grazzi għall ġejjin u sfida.

820
00:36:39,680 --> 00:36:42,410

821
00:36:42,410 --> 00:36:46,910
Allura aħna għandna aktar blalen istress, hekk
ejja jagħmlu waħda aktar eżempju biex jimmotivaw.

822
00:36:46,910 --> 00:36:48,150
A voluntier?

823
00:36:48,150 --> 00:36:50,510
Kull dritt, kif madwar
dritt hawn quddiem.

824
00:36:50,510 --> 00:36:51,250
X'hemm isem tiegħek?

825
00:36:51,250 --> 00:36:51,660
>> PHILLIP: Phillip.

826
00:36:51,660 --> 00:36:52,660
>> DAVID J. Malan: Phillip.

827
00:36:52,660 --> 00:36:54,530
Come fuq up, Phillip.

828
00:36:54,530 --> 00:36:57,340
Allura, Phillip se tkun
kkontestat ma logħba oħra

829
00:36:57,340 --> 00:37:00,840
li wieħed mill-predeċessuri tiegħek
kiteb bħala parti mill-problema sett żero,

830
00:37:00,840 --> 00:37:03,510
imsejħa agħar Game Ivy tal.

831
00:37:03,510 --> 00:37:05,980
U aħna ser tara fi ftit
mument x'hemm mfisser b'dan.

832
00:37:05,980 --> 00:37:07,400
Phillip, sbieħ li jissodisfaw inti.

833
00:37:07,400 --> 00:37:09,060
X'inhu l-isfond tiegħek?

834
00:37:09,060 --> 00:37:10,310
PHILLIP: Magħmul lott ta 'kodifikazzjoni.

835
00:37:10,310 --> 00:37:11,110
Magħmul logħob ftit, wisq.

836
00:37:11,110 --> 00:37:11,570
>> DAVID J. Malan: OK.

837
00:37:11,570 --> 00:37:12,620
Qbilna ħafna ta 'logħob, wisq.

838
00:37:12,620 --> 00:37:14,230
U qatt lagħbu din il-logħba qabel?

839
00:37:14,230 --> 00:37:14,730
>> PHILLIP: Nru

840
00:37:14,730 --> 00:37:16,438
DAVID J. Malan: All
dritt, so here we go.

841
00:37:16,438 --> 00:37:18,434
Jien ser jimxi 'l quddiem
u kklikkja l-bandiera aħdar.

842
00:37:18,434 --> 00:37:24,160
>> [MUSIC GAME]

843
00:37:24,160 --> 00:37:27,770
>> [MUSIC MC Hammer, "U MA TISTAX touch dan"]

844
00:37:27,770 --> 00:38:39,790

845
00:38:39,790 --> 00:38:41,635
>> PHILLIP: [inaudible]

846
00:38:41,635 --> 00:38:42,760
DAVID J. Malan: [inaudible]

847
00:38:42,760 --> 00:38:44,740
PHILLIP: [inaudible]

848
00:38:44,740 --> 00:38:49,056
[Laughing]

849
00:38:49,056 --> 00:38:50,680
[MUSIC MC Hammer, "U MA TISTAX touch dan"]

850
00:38:50,680 --> 00:38:52,660
DAVID J. Malan: [inaudible]
Moħriet permezz tiegħu.

851
00:38:52,660 --> 00:38:54,094
PHILLIP: [inaudible]

852
00:38:54,094 --> 00:38:55,135
DAVID J. Malan: Mur quddiem.

853
00:38:55,135 --> 00:39:01,570
[MUSIC MC Hammer, "U MA TISTAX touch dan"]

854
00:39:01,570 --> 00:39:15,832

855
00:39:15,832 --> 00:39:16,915
DAVID J. Malan: Kull dritt.

856
00:39:16,915 --> 00:39:18,400
Prosit.

857
00:39:18,400 --> 00:39:25,150
>> [Applause]

858
00:39:25,150 --> 00:39:27,330
>> DAVID J. Malan: Aħna se
post li online aktar tard hekk

859
00:39:27,330 --> 00:39:29,820
li inti tista 'procrastinate
miegħu kif ukoll.

860
00:39:29,820 --> 00:39:32,550
Princeton taqa up li jmiss, wara dik.

861
00:39:32,550 --> 00:39:35,470
>> Allura issa ejja attwalment jipproċedi
li jibdew mill-bidunett,

862
00:39:35,470 --> 00:39:39,310
biex ngħidu hekk, u fil-fatt jibnu sa
nistgħu tease apparti xi wħud minn dawn l-ideat

863
00:39:39,310 --> 00:39:41,970
u biex tikseb xi ħaġa anke
aktar kumplessi mill-aħħar.

864
00:39:41,970 --> 00:39:45,240
Jien se jmorru fuq hawn u jien ser
jimxi 'l quddiem u toħloq fajl ġdid.

865
00:39:45,240 --> 00:39:47,460
Għalhekk għal darb'oħra, is-sett problema se jimxu
inti permezz xi wħud minn dawn il-passi.

866
00:39:47,460 --> 00:39:49,300
Imma, kollha I ma kien go
għall-menu File u I

867
00:39:49,300 --> 00:39:52,760
qal "ġodda," tant bħal Microsoft
Word, jew kwalunkwe programm bħal dik.

868
00:39:52,760 --> 00:39:56,630
>> U ejja imorru quddiem now-- u aħna
implimentata "Hello dinja" mument ilu,

869
00:39:56,630 --> 00:39:58,410
imma ejja do xi ħaġa cuter ftit.

870
00:39:58,410 --> 00:40:00,150
Jien ser jitla 'għal avvenimenti.

871
00:40:00,150 --> 00:40:02,350
U jien se tagħmel "meta
bandiera aħdar għafast. "

872
00:40:02,350 --> 00:40:05,830
U mbagħad jien ser tuża,
nistgħu ngħidu, fergħa.

873
00:40:05,830 --> 00:40:07,610
So jien ser tuża "jekk" kundizzjoni.

874
00:40:07,610 --> 00:40:10,940
U avviż kif malli I nikseb qrib
lilha, trid snap flimkien.

875
00:40:10,940 --> 00:40:13,020
So I let go u snaps flimkien.

876
00:40:13,020 --> 00:40:15,150
U issa I tista 'tagħmel xi ħaġa interessanti.

877
00:40:15,150 --> 00:40:19,150
Jekk I iscroll permezz hawn, jien ser
biex tara mazz sħiħ ta 'blokki.

878
00:40:19,150 --> 00:40:22,620
Jekk I mur "data" - let me zoom in--
hemm xi ħaġa dwar fatturi varjabbli.

879
00:40:22,620 --> 00:40:26,160
Jekk I mur "mozzjoni," inti tista '
apparentement jduru madwar l-affarijiet.

880
00:40:26,160 --> 00:40:28,760
Jekk I mur "operaturi" -
oh, dan huwa interessanti,

881
00:40:28,760 --> 00:40:31,000
I tista 'pick numru bl-addoċċ.

882
00:40:31,000 --> 00:40:34,119
So let me tagħmel xi ħaġa ma biss
b'xi probabbilità, biss għaliex.

883
00:40:34,119 --> 00:40:36,160
Jien ser jimxi 'l quddiem u
drag din il-biċċa puzzle,

884
00:40:36,160 --> 00:40:37,910
dan huwa li inqas minn
blokk, dan huwa biss

885
00:40:37,910 --> 00:40:39,480
"Huwa dan in-numru inqas minn dak waħda?"

886
00:40:39,480 --> 00:40:42,438
Imma ma rridx kodiċi hard numru
minħabba li jkun pretty inutli.

887
00:40:42,438 --> 00:40:46,270
So I m ser drag din il-biċċa
hawn, u avviż kif snaps fi,

888
00:40:46,270 --> 00:40:49,480
u issa let me imorru quddiem u jgħidu "jekk
in-numru li s qabad saltwarjament

889
00:40:49,480 --> 00:40:51,820
huwa inqas minn sitta, jagħmel dan li ġej. "

890
00:40:51,820 --> 00:40:52,790
Issa għaliex anqas minn sitta?

891
00:40:52,790 --> 00:40:56,400
X'inhu probabilità huwa dan effettivament
ser jagħti me, just intuwittivament?

892
00:40:56,400 --> 00:40:57,440
Madwar 50%, id-dritt?

893
00:40:57,440 --> 00:41:01,190
Jekk in-numru li l raden saltwarjament
bejn 1 u 10 huwa inqas minn sitta,

894
00:41:01,190 --> 00:41:03,480
b'mod ċar huwa wieħed, tnejn,
tlieta, erba ', jew ħames.

895
00:41:03,480 --> 00:41:06,740
U hekk li għaddej biex tagħti me a
50% probabbiltà ta 'dak li jiġri?

896
00:41:06,740 --> 00:41:09,890
>> Well ejja nagħmlu xi ħaġa bħal
dan, "play meow ħoss."

897
00:41:09,890 --> 00:41:11,750
U avviż, għal darb'oħra,
l-biċċa puzzle tikber

898
00:41:11,750 --> 00:41:13,700
li jitwaħħal, sakemm il-forom jaqblu.

899
00:41:13,700 --> 00:41:14,910
C'est x'hemm importanti.

900
00:41:14,910 --> 00:41:18,000
Let me go fuq biex Scratch
hawn u ikklikkja "play."

901
00:41:18,000 --> 00:41:19,300
Xejn jiġri.

902
00:41:19,300 --> 00:41:21,160
Huwa li bug?

903
00:41:21,160 --> 00:41:21,999
Le, mhux meħtieġ.

904
00:41:21,999 --> 00:41:24,040
Dan jista 'jkun biss li
numru akbar ġie magħżul.

905
00:41:24,040 --> 00:41:25,762
Mela ejja jagħmlu mill-ġdid.

906
00:41:25,762 --> 00:41:27,550
Xejn.

907
00:41:27,550 --> 00:41:28,344
>> [Meow]

908
00:41:28,344 --> 00:41:29,510
DAVID J. Malan: Hemm huwa.

909
00:41:29,510 --> 00:41:30,280
[Meow]

910
00:41:30,280 --> 00:41:31,690
DAVID J. Malan: Għal darb'oħra.

911
00:41:31,690 --> 00:41:32,300
No

912
00:41:32,300 --> 00:41:32,922
>> [Meowing]

913
00:41:32,922 --> 00:41:35,380
DAVID J. Malan: Mela jekk inti stajt
qatt lagħbu logħba, ta 'kors,

914
00:41:35,380 --> 00:41:38,500
fejn Jittieħed qed jiġri saltwarjament,
bħall-guys ħżiena huma ġejjin jew le

915
00:41:38,500 --> 00:41:41,350
ġejjin fuq l-iskrin, jew
affarijiet qed jaqgħu jew ma jaqgħux,

916
00:41:41,350 --> 00:41:43,610
li jinsab biss minħabba xi ħaġa super
sempliċi bħal dan qed jiġri.

917
00:41:43,610 --> 00:41:46,010
Pick numru bl-addoċċ, u jekk
huwa inqas minn xi valur,

918
00:41:46,010 --> 00:41:49,100
forsi jagħmlu dan jew forsi tagħmel dan.

919
00:41:49,100 --> 00:41:51,340
Nistgħu jinkorporaw
li fis-kundizzjoni.

920
00:41:51,340 --> 00:41:52,600
Ejja nagħmlu xi ħaġa differenti.

921
00:41:52,600 --> 00:41:53,559
>> Let me tarmi dik bogħod.

922
00:41:53,559 --> 00:41:56,058
Inti tista 'teħles ta' għalf minn
biss jittrattienu off lejn ix-xellug

923
00:41:56,058 --> 00:41:56,810
u kiri go.

924
00:41:56,810 --> 00:42:00,310
Let me imorru quddiem u jagħmlu dejjem blokk
u malajr ħafna tagħmel xi ħaġa annoying.

925
00:42:00,310 --> 00:42:03,010
Let me imorru quddiem u
jgħidu "play meow ħoss."

926
00:42:03,010 --> 00:42:06,620
Imma jien ma jridux li dan ikun wisq
annoying, so let me grab din il-blokka,

927
00:42:06,620 --> 00:42:09,090
"Stenna-tieni waħda," u avviż
hemm l-ebda aktar spazju għal dan.

928
00:42:09,090 --> 00:42:11,310
Imma jekk inti tmur qrib biżżejjed,
trid li jmorru hemm.

929
00:42:11,310 --> 00:42:14,100
So I let go u se
jikber biex timla l-blokk.

930
00:42:14,100 --> 00:42:15,932
Allura issa, dan huwa loop.

931
00:42:15,932 --> 00:42:16,432
[Meowing]

932
00:42:16,432 --> 00:42:18,473
DAVID J. Malan: Ninsab
litteralment tagħmel dan għal dejjem.

933
00:42:18,473 --> 00:42:19,360
Għal darb'oħra u għal darb'oħra.

934
00:42:19,360 --> 00:42:21,510
Dan huwa biss mhux sounding naturali.

935
00:42:21,510 --> 00:42:24,800
Let me imorru quddiem u jbiddlu dan
li mhux wieħed tieni, għal żewġ sekondi

936
00:42:24,800 --> 00:42:25,854
u hit Ikteb.

937
00:42:25,854 --> 00:42:28,770
U x'hemm sbieħ dwar Scratch huwa
li inti tista 'programm interattiv.

938
00:42:28,770 --> 00:42:32,450
Agħmel bidla, forsi hit Ikteb jew Play
darb'oħra, u se biss iżommu għaddejjin.

939
00:42:32,450 --> 00:42:34,962
Well, issa għaliex ma nagħmlu
xi ħaġa cuter ftit?

940
00:42:34,962 --> 00:42:39,680
Pjuttost milli tagħmel dak kollu mill-bidu nett,
let me imorru quddiem u tiftaħ avvanz

941
00:42:39,680 --> 00:42:43,180
magħmula wieħed, li jien minn qabel moħmija,
imsejjaħ "Pet l-Kat."

942
00:42:43,180 --> 00:42:44,920
U aħna ser post kollha ta '
dawn il-fajls fuq l-internet,

943
00:42:44,920 --> 00:42:48,464
u l-problema jistabbilixxu żero se jgħidlek
kif ikollhok aċċess għalihom u dawn jinfetħu.

944
00:42:48,464 --> 00:42:49,880
U avviż, dan huwa pjuttost sempliċi.

945
00:42:49,880 --> 00:42:53,860
Iżda bil-quddiem, I jidhru li grabbed
a "dejjem" blokk, hekk stajt ltqajna loop.

946
00:42:53,860 --> 00:42:55,500
U allura stajt ltqajna "jekk" kundizzjoni.

947
00:42:55,500 --> 00:42:57,410
Stajt ltqajna espressjoni Boolean.

948
00:42:57,410 --> 00:43:00,100
>> Allura bl-Ingliż, biss glancing fil
dan, speċjalment jekk inti stajt qatt

949
00:43:00,100 --> 00:43:04,278
programmati qabel, biss intuwittivament,
dak li huwa dan se tagħmel, dan il-programm?

950
00:43:04,278 --> 00:43:06,910
>> [Chatter UDJENZA]

951
00:43:06,910 --> 00:43:09,960
>> DAVID J. Malan: Jekk inti pet il-qattus,
il-qattus se meow, id-dritt?

952
00:43:09,960 --> 00:43:14,560
Għaliex "dejjem unchecking" huwa
l-mouse pointer li jmissu l-qattus.

953
00:43:14,560 --> 00:43:17,630
Allura biex tkun ċara, u I ma jgħidu
dan qabel, kollha ta 'dawn puzzle

954
00:43:17,630 --> 00:43:20,750
biċċiet u l-iskrittura li
għandna kkombinahom,

955
00:43:20,750 --> 00:43:25,510
biex ngħidu hekk, b'kitba huwa sinonimu ma
programm, verament, jappartjeni għal din il-qattus.

956
00:43:25,510 --> 00:43:30,110
U r-raġuni għaliex is-- avviż
kif dan l-istess qattus hawnhekk hija enfasizzata,

957
00:43:30,110 --> 00:43:32,710
stabbiliti hawn inti tista 'toħloq
tieni qattus jew kelb jew verament

958
00:43:32,710 --> 00:43:33,970
xi ħaġa li trid grafikament.

959
00:43:33,970 --> 00:43:35,900
Inti tista 'importazzjoni xi ħaġa
minn Photoshop, jew bħalhom,

960
00:43:35,900 --> 00:43:38,300
u jintegraw xi ħaġa jekk inti
tixtieq li tagħmel dan għal proġett.

961
00:43:38,300 --> 00:43:40,174
U dak li inti ser issib,
finalment, huwa li inti

962
00:43:40,174 --> 00:43:44,800
tista 'żżid skripts, żid puzzle
biċċiet, għal karattri individwali.

963
00:43:44,800 --> 00:43:47,210
Allura dawn kollha jappartjenu għall
dan qattus partikolari.

964
00:43:47,210 --> 00:43:51,770
Allura issa jekk I jimxi 'l quddiem u play
dan il-programm, xejn jiġri.

965
00:43:51,770 --> 00:43:52,970
Iżda tkun qed taħdem.

966
00:43:52,970 --> 00:43:56,364
Il-programm huwa f'dan dejjem loop,
tip ta 'stennija għal dak li jiġri?

967
00:43:56,364 --> 00:43:57,230
>> [Chatter UDJENZA]

968
00:43:57,230 --> 00:43:58,130
>> DAVID J. Malan: Biex domestiċi il-qattus.

969
00:43:58,130 --> 00:43:59,800
Mela jekk jien jimxu maws tiegħi lejn him--

970
00:43:59,800 --> 00:44:02,420
>> [Meowing]

971
00:44:02,420 --> 00:44:04,450
>> DAVID J. Malan: Allura issa
Jien petting-qattus.

972
00:44:04,450 --> 00:44:07,330
Sadanittant, jista 'jkollna fergħa doppja.

973
00:44:07,330 --> 00:44:10,370
Let me imorru quddiem u tiftaħ
up ma domestiċi-qattus.

974
00:44:10,370 --> 00:44:12,160
Aħna ser post dan online ukoll.

975
00:44:12,160 --> 00:44:16,760
Dan huwa xi ftit aktar
kumplessi, iżda mingħajr ma tgħid

976
00:44:16,760 --> 00:44:18,780
inti tista 'raden forsi
x'inhu jiġri.

977
00:44:18,780 --> 00:44:20,160
>> [Meowing]

978
00:44:20,160 --> 00:44:23,900
>> DAVID J. Malan: Cat huwa
meowing, ħin qodma grand.

979
00:44:23,900 --> 00:44:26,690
Iżda dan il-programm huwa ta 'kors
imsejħa "Ma Pet il Cat,"

980
00:44:26,690 --> 00:44:29,350
hekk b'mod ċar, nixtieq li pet-qattus.

981
00:44:29,350 --> 00:44:30,490
>> [ROARING]

982
00:44:30,490 --> 00:44:31,940
>> DAVID J. Malan: M'għandekx domestiċi il-qattus.

983
00:44:31,940 --> 00:44:34,230
Issa, ejja tagħti ħarsa
fi eżempju ieħor hawnhekk.

984
00:44:34,230 --> 00:44:38,035
Dan wieħed se jissejħu
"Hi, Hi, Hi," għal raġunijiet

985
00:44:38,035 --> 00:44:40,410
li se jkun ċar, għaliex
malli I run dan thing--

986
00:44:40,410 --> 00:44:41,401
>> [Barking SEAL]

987
00:44:41,401 --> 00:44:43,942
DAVID J. Malan: Faċli ħafna biex
jiktbu programmi Scratch annoying.

988
00:44:43,942 --> 00:44:45,300
[Barking SEAL]

989
00:44:45,300 --> 00:44:48,540
DAVID J. Malan: Issa aħna mhux se jmorru
fid-dettal ħafna ma 'dawn kollha,

990
00:44:48,540 --> 00:44:51,150
imma avviż hemm
koppja ta 'fatturi ġodda hawn.

991
00:44:51,150 --> 00:44:55,540
Hemm varjabbli, imsejħa "siekta,"
u allura hemm mazz ta 'kundizzjonijiet.

992
00:44:55,540 --> 00:44:57,900
U għal issa, let me
biss tease inti billi qal

993
00:44:57,900 --> 00:45:03,170
li jekk dan Guy gets wisq annoying,
I tista 'tolqot l-spacebar u hu waqfiet.

994
00:45:03,170 --> 00:45:05,880
Minħabba r-rwol li kellha mill
dawn iż-żewġ skripts hija kif ġej.

995
00:45:05,880 --> 00:45:08,510
Waħda minnhom hija tagħmel l-
Barking kull ftit sekondi.

996
00:45:08,510 --> 00:45:11,305
L-oħra hija ftit stennija
għalija li tolqot l-spacebar.

997
00:45:11,305 --> 00:45:14,780
U jekk I do hit l-spacebar,
li għaddej biex jibdlu

998
00:45:14,780 --> 00:45:18,096
l-istat ta 'dan il-varjabbli, il-valur
ta 'dan il-varjabbli, li apparentement

999
00:45:18,096 --> 00:45:20,470
imsejħa "siekta," I ma sejħa
xi ħaġa boring bħal n,

1000
00:45:20,470 --> 00:45:22,370
I sejħitilha kelma Ingliża, "siekta."

1001
00:45:22,370 --> 00:45:24,740
Minn 1 sa 0 jew 0-1.

1002
00:45:24,740 --> 00:45:26,830
Mill vera biex falza jew falza vera.

1003
00:45:26,830 --> 00:45:28,930
U għalhekk inti tista 'attwalment
tara issa, li inti

1004
00:45:28,930 --> 00:45:31,720
jista 'jkollhom żewġ skripts, tnejn
programmi running simultanjament,

1005
00:45:31,720 --> 00:45:34,360
u tnejn minnhom jistgħu jiġu seduta
fil-loop tagħmel xi ħaġa.

1006
00:45:34,360 --> 00:45:38,067
Stennija għall-bniedem biex jagħmlu
xi ħaġa bħal laqtu spacebar.

1007
00:45:38,067 --> 00:45:38,650
[Barking SEAL]

1008
00:45:38,650 --> 00:45:40,566
DAVID J. Malan: U issa
hu fit-triq tiegħu mill-ġdid.

1009
00:45:40,566 --> 00:45:41,640
[Barking SEAL]

1010
00:45:41,640 --> 00:45:45,220
DAVID J. Malan: Allura x'iktar
tista nagħmlu ma 'dawn l-eżempji?

1011
00:45:45,220 --> 00:45:50,920
Well, ejja imorru quddiem u tagħmel
pereżempju fir-għadd tan-nagħaġ.

1012
00:45:50,920 --> 00:45:59,210
Aħna ser tkompli din fuq il-linji hawn
of-- ejja jiftħu l-eżempju nagħaġ.

1013
00:45:59,210 --> 00:46:02,460
U avviż, ħafna bħal qabel, dan wieħed,
Thankfully, huwa ftit inqas annoying.

1014
00:46:02,460 --> 00:46:06,940
Ladarba I hit play here--
Oh no, dan huwa annoying.

1015
00:46:06,940 --> 00:46:10,130
Huwa se baa
b'xi probabbilità.

1016
00:46:10,130 --> 00:46:11,050
Ejja jilagħbu din darb'oħra.

1017
00:46:11,050 --> 00:46:15,221
>> [BLEETING NAGĦAĠ]

1018
00:46:15,221 --> 00:46:18,470
DAVID J. Malan: L-unika differenza hija
konna mibdula l kostum, biex ngħidu hekk,

1019
00:46:18,470 --> 00:46:21,710
u aħna qed tnaqqas bin-nofs u jgħidu
dak dak in-numru attwali huwa.

1020
00:46:21,710 --> 00:46:24,680
Well ejja imorru quddiem u
tieħu dan il-pass wieħed ulterjuri.

1021
00:46:24,680 --> 00:46:28,190
U let me tease inti ma
Karatteristika waħda oħra hawn.

1022
00:46:28,190 --> 00:46:31,800
Ejja imorru quddiem u tiftaħ
programm imsejjaħ Threads.

1023
00:46:31,800 --> 00:46:36,620
Tant simili inti tista 'jkollha waħda
Sprite, li skripts multipli,

1024
00:46:36,620 --> 00:46:41,250
inti jista 'jkollhom żewġ sprites, għasfur fl
qattus, li kull wieħed iskrittura tagħhom stess.

1025
00:46:41,250 --> 00:46:43,976
U kull wieħed minnhom jista '
joperaw simultanjament.

1026
00:46:43,976 --> 00:46:45,980
Jekk inti stajt qatt semgħu l-
kelma "multithreading"

1027
00:46:45,980 --> 00:46:49,240
kompjuter huwa "multithreaded" tfisser
hija tista 'tagħmel affarijiet multipli fuq darba,

1028
00:46:49,240 --> 00:46:50,880
u, tabilħaqq, sabiex tista 'Scratch.

1029
00:46:50,880 --> 00:46:52,690
>> U issa avviż-għasafar hija tip ta 'dumb.

1030
00:46:52,690 --> 00:46:55,100
Huwa biss tagħmel affarijiet bl-addoċċ,
bouncing off-iskrin.

1031
00:46:55,100 --> 00:46:59,460
Ovvjament il-qattus ġie pprogrammat
li tip ta 'jkollhom li jfittxu kapaċitajiet

1032
00:46:59,460 --> 00:47:02,680
dar fuq l-għasafar minħabba
hu dejjem tipponta lejn lilu.

1033
00:47:02,680 --> 00:47:06,176
Sakemm finalment, huwa
qabdiet l-għasafar attwali.

1034
00:47:06,176 --> 00:47:08,550
So I mhux se nitkellem dwar id-dettalji
hawn, imma int tista tip ta '

1035
00:47:08,550 --> 00:47:12,160
glimpse l-istess forom, xi
"Jekk" kundizzjonijiet, xi varjabbli,

1036
00:47:12,160 --> 00:47:15,740
forsi xi loops, huma
finalment tagħmel l-istess ħaġa.

1037
00:47:15,740 --> 00:47:18,400
>> Issa let me imorru quddiem u tiftaħ
up xi ħaġa oħra għal kollox,

1038
00:47:18,400 --> 00:47:20,920
tease xi wħud minnkom, partikolarment
dawk aktar komda,

1039
00:47:20,920 --> 00:47:22,760
dak li inti tista 'attwalment tagħmel ma' dan.

1040
00:47:22,760 --> 00:47:26,080
Jien ser jimxi 'l quddiem
u jiftħu Button here.

1041
00:47:26,080 --> 00:47:28,740
U dan huwa super
programm sempliċi seeming,

1042
00:47:28,740 --> 00:47:34,190
iżda jaraw dak li jiġri
meta I-- Watch dak

1043
00:47:34,190 --> 00:47:39,860
jiġri meta I tiftaħ din il-verżjoni ta 'dan,
hawn fil-browser, scratch.mit.edu.

1044
00:47:39,860 --> 00:47:43,460
U meta I ikklikkja dan aħmar big
buttuna, avviż x'jiġri.

1045
00:47:43,460 --> 00:47:46,110

1046
00:47:46,110 --> 00:47:47,647
Allura x'inhu għaddej hawn?

1047
00:47:47,647 --> 00:47:50,480
Hemm effettivament kumplessità ħafna aktar
tmur fuq taħt il-barnuża,

1048
00:47:50,480 --> 00:47:52,896
anki jekk stajt implimentati
dan, jew franchement, Dan Bradley

1049
00:47:52,896 --> 00:47:54,660
implimentat dan hekk sempliċiment.

1050
00:47:54,660 --> 00:47:59,540
Huwa fasslet puzzle Scratch custom
biċċa, magħrufa bħala estensjoni Scratch,

1051
00:47:59,540 --> 00:48:01,300
hu sejjaħ dan Toggle.

1052
00:48:01,300 --> 00:48:06,332
>> U dak Toggle ma huwa jibgħat
messaġġ fuq l-internet.

1053
00:48:06,332 --> 00:48:08,290
U li messaġġ innifsu
jistenna ftit cryptic.

1054
00:48:08,290 --> 00:48:10,248
Iżda dan, wisq, inti ser
jifhmu sa tmiem tul ta.

1055
00:48:10,248 --> 00:48:14,930
Il-messaġġ hu attwalment jibgħat
jistenna ftit xi ħaġa bħal din.

1056
00:48:14,930 --> 00:48:15,921
Huwa biss it-test.

1057
00:48:15,921 --> 00:48:16,420
Mistur.

1058
00:48:16,420 --> 00:48:19,130
Int ser tifhem lilu mill-ħin
irridu jiksbu l-problema sett sebgħa.

1059
00:48:19,130 --> 00:48:22,180
Huwa biss jibgħat messaġġ testwali
fuq l-internet għal server.

1060
00:48:22,180 --> 00:48:24,330
U li server huwa, finalment,
tkellem lil din bozza tad-dawl, li

1061
00:48:24,330 --> 00:48:27,240
għandha wieħed minn dawk bozoz tad-dawl fancy
fiha li, hija stess, qed jitkellem

1062
00:48:27,240 --> 00:48:30,760
għall-Wi-Fi fin-netwerk hawn,
fejn apparat lokali isfel here--

1063
00:48:30,760 --> 00:48:34,400
u, finalment, huwa attwalment
tidwir li d-dawl u jintfew.

1064
00:48:34,400 --> 00:48:36,240
Iżda nistgħu nagħmlu aktar
affarijiet interessanti għadhom.

1065
00:48:36,240 --> 00:48:38,270
Avviż dak Dan għamlet ukoll għalina.

1066
00:48:38,270 --> 00:48:42,210
Huwa għamel sprites multipli, kull wieħed
li għandha b'kitba stennija għal klikk.

1067
00:48:42,210 --> 00:48:44,030
U jekk I ikklikkja aħmar, din tmur aħmar.

1068
00:48:44,030 --> 00:48:46,780
Jekk niġi blu, din tmur blueish.

1069
00:48:46,780 --> 00:48:49,854
Aħdar, isfar, oranġjo.

1070
00:48:49,854 --> 00:48:52,520
U dan kollu qed jiġri permezz
jmorru mod fuq l-internet,

1071
00:48:52,520 --> 00:48:54,690
lura stabbiliti hawn għall-
bozza tad-dawl, u jintfew.

1072
00:48:54,690 --> 00:48:57,981
>> U jekk inti tista 'temmen it-- u dan huwa
forsi wieħed mill-Scratch aktar kumplessi

1073
00:48:57,981 --> 00:49:00,930
proġetti xi ħadd ikollu implemented--
huwa ma kien, fil-ġustizzja, fil-jum.

1074
00:49:00,930 --> 00:49:04,180
U li kien l-isfida aħna threw isfel
li daN meta rajna jkollhom basal binarja,

1075
00:49:04,180 --> 00:49:05,810
għandna Scratch, kif
nistgħu jgħaqqdu lilhom?

1076
00:49:05,810 --> 00:49:08,410
U, tabilħaqq, dan huwa assolutament
xi ħaġa li kulħadd f'din il-kamra

1077
00:49:08,410 --> 00:49:14,250
tista 'tagħmel billi end-- semestru huwa hu
basal binarja reimplemented jużaw

1078
00:49:14,250 --> 00:49:18,310
l-istess interface li kien
fuq iPad tagħna nhar l-Erbgħa.

1079
00:49:18,310 --> 00:49:22,000
Allura li issa, jekk I attwalment
ikklikkja l-plus hawn fuq,

1080
00:49:22,000 --> 00:49:25,250
aħna għandna waħda, tnejn, tlieta.

1081
00:49:25,250 --> 00:49:27,550
I tista 'tolqot l-16 u dawwar dak fuq.

1082
00:49:27,550 --> 00:49:29,440
128, u ibqa 'sejjer hekk.

1083
00:49:29,440 --> 00:49:31,250
>> Issa jekk dik waħedha għandha
u minfuħa moħħok,

1084
00:49:31,250 --> 00:49:35,680
inti tista 'tagħmel affarijiet ferm aktar aċċessibbli,
ma tinvolvix xi hardware ċertament.

1085
00:49:35,680 --> 00:49:38,320
Just affarijiet fuq l-iskrin innifsu.

1086
00:49:38,320 --> 00:49:41,110
U, tabilħaqq, dak li ħafna studenti
jispiċċaw jagħmlu xi tip ta 'logħba,

1087
00:49:41,110 --> 00:49:44,600
xi biċċa xogħol artistiku, jew
xi tip ta 'animazzjoni interattiva.

1088
00:49:44,600 --> 00:49:47,352
U jien se ngħid waħda ta 'tagħna
Favourites kien dan wieħed.

1089
00:49:47,352 --> 00:49:49,060
U ħsibt jekk aħna
jista dim-dwal,

1090
00:49:49,060 --> 00:49:52,960
aħna ser tagħti idea f'dan finali
Proġett Scratch fil-konklużjoni.

1091
00:49:52,960 --> 00:49:57,460
Imma dak li inti ser għandu jżomm f'moħħu, bħala
I tista 'tease inti ma wieħed dettall aħħar,

1092
00:49:57,460 --> 00:49:59,140
sezzjonali se tibda ġimgħa d-dieħla.

1093
00:49:59,140 --> 00:50:00,830
Uffiċċju siegħa se tibda ġimgħa d-dieħla.

1094
00:50:00,830 --> 00:50:04,410
Problema sett żero se jkunu stazzjonati
CS50.harvard.edu aktar tard illum.

1095
00:50:04,410 --> 00:50:06,430
U int se tkun milqugħa
fl problema sett żero

1096
00:50:06,430 --> 00:50:10,070
biex stess Zamyla Chan CS50, l li
gwidi aktar ta 'walkthroughs tagħna.

1097
00:50:10,070 --> 00:50:11,952
Dawn huma integrati videos
fis-settijiet problema

1098
00:50:11,952 --> 00:50:15,160
li se żżomm f'idejk permezz ta 'lott
tal-up sett inizjali u permezz ta 'ħafna

1099
00:50:15,160 --> 00:50:16,570
tad-deċiżjonijiet possibbli tad-disinn.

1100
00:50:16,570 --> 00:50:19,570
Mela jekk inti stajt qatt kellhom li l-emozzjoni
meta picking up a assenjazzjoni huiswerk

1101
00:50:19,570 --> 00:50:21,030
u mintix, fejn nista tibda?

1102
00:50:21,030 --> 00:50:23,510
Hi se jkollhom din ir-risposta għalik.

1103
00:50:23,510 --> 00:50:27,720
U issa, programm finali
minn wieħed mill-predeċessuri tiegħek

1104
00:50:27,720 --> 00:50:30,659
Bi tweġiba għall-mistoqsija
"X'tagħmel l-volpi jgħidu?"

1105
00:50:30,659 --> 00:50:32,242
[MUSIC YLVIS, "X'tagħmel l-FOX JGĦIDU?]

1106
00:50:32,242 --> 00:50:40,178

1107
00:50:40,178 --> 00:50:41,666
>> YLVIS: (KANT) Dog tmur woof.

1108
00:50:41,666 --> 00:50:43,650
Cat tmur meow.

1109
00:50:43,650 --> 00:50:47,520
Bird tmur tweet u maws tmur squeak.

1110
00:50:47,520 --> 00:50:49,240
Cow tmur moo.

1111
00:50:49,240 --> 00:50:51,690
Żrinġ tmur croak.

1112
00:50:51,690 --> 00:50:54,630
U l-iljunfant tmur toot.

1113
00:50:54,630 --> 00:50:59,040
Papri jgħidu quack u ħut jmorru blub.

1114
00:50:59,040 --> 00:51:07,370
U s-siġill tmur ow ow ow, iżda
hemm wieħed ħoss li ħadd ma jaf,

1115
00:51:07,370 --> 00:51:10,330
dak ma l-volpi jgħidu?

1116
00:51:10,330 --> 00:51:11,020
U

1117
00:51:11,020 --> 00:51:12,478
>> DAVID J. Malan: Li lilha għall CS50.

1118
00:51:12,478 --> 00:51:15,436
Aħna se tara inti fil
Puzzle Jum u nhar it-Tnejn.

1119
00:51:15,436 --> 00:51:16,424
>> [Applause]

1120
00:51:16,424 --> 00:51:19,882
>> [MUSIC YLVIS, "X'INHU does IL JGĦIDU FOX?"]

1121
00:51:19,882 --> 00:51:24,840

1122
00:51:24,840 --> 00:51:28,820
>> Narrator: U issa fil-fond
ħsibijiet, billi Daven Farnham.

1123
00:51:28,820 --> 00:51:31,770

1124
00:51:31,770 --> 00:51:34,570
Illum sibt hit fil-
imb'wiċċ ma 'ktieb tat-telefon.

1125
00:51:34,570 --> 00:51:38,160
Konfużjoni, kif jien fil
home jaraw online.

1126
00:51:38,160 --> 00:51:42,528