Add seeded environment data, provenance, statistics, and dataset card
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +92 -0
- LICENSES.md +7 -0
- Media/agent1/COMP 313/LearnBashAssignment.sh +119 -0
- Media/agent1/COMP 313/LogAnalyzer.c +162 -0
- Media/agent1/COMP 222/A1.java +142 -0
- Media/agent1/COMP 222/A2.java +226 -0
- Media/agent1/COMP 222/A3.java +85 -0
- Media/agent1/safari trip pictures/Elephantvideo.mp4 +3 -0
- Media/agent1/safari trip pictures/GiraffeVideo.mp4 +3 -0
- Media/agent1/safari trip pictures/elephant_africa_safari_serengeti_0.jpg +3 -0
- Media/agent1/safari trip pictures/elephant_tanzania_africa_serengeti.jpg +3 -0
- Media/agent1/safari trip pictures/gazelle_africa_safari_serengeti_0.jpg +3 -0
- Media/agent1/safari trip pictures/giraffe_reticulated_giraffe_neck.jpg +3 -0
- Media/agent1/safari trip pictures/male_lion_african_lion.jpg +3 -0
- Media/agent1/safari trip pictures/zebra_baby_zebra_africa.jpg +3 -0
- Media/agent2/ 1-prop Confidence Interval Full write up example.docx +0 -0
- Media/agent2/ Jordan Carter - 2do período Las Aventuras de J.docx +3 -0
- Media/agent2/#1.9 P Active reading guide Chpt. 1 _ 2 (Sep 17, 2(4).png +3 -0
- Media/agent2/#1.9 P Active reading guide Chpt. 1 _ 2 (Sep 17, 2(5).png +3 -0
- Media/agent2/#1.9 P Active reading guide Chpt. 1 _ 2 (Sep 18, 2(3).png +3 -0
- Media/agent2/#1.9 P Active reading guide Chpt. 1 _ 2 (Sep 18, 2(5).png +3 -0
- Media/agent2/#11 Sculptural Assignment (Jun 1, 2021 at 9_59 AM).png +3 -0
- Media/agent2/#2.4M Phet Molecule shapes (Oct 6, 2020 at 2_22.png +3 -0
- Media/agent2/#2.4M Phet Molecule shapes (Oct 6, 2020 at 2_23.png +3 -0
- Media/agent2/#3.3M IMF_s _ Physical properties modeling acti(2).png +3 -0
- Media/agent2/#4 Linear Regression Practice (Sep 9, 2021 at 1.png +3 -0
- Media/agent2/#5 Two-Way ANOVA Notes and Assignment_ Popcorn (Fe(3).png +3 -0
- Media/agent2/#6 ANOVA Exam (Feb 17, 2022 at 12_52 PM).png +3 -0
- Media/agent2/#6 ANOVA Exam (Feb 17, 2022 at 12_53 PM)(1).png +3 -0
- Media/agent2/#6 ANOVA Exam (Feb 17, 2022 at 12_58 PM).png +3 -0
- Media/agent2/#6 ANOVA Exam (Feb 17, 2022 at 9_55 PM).png +3 -0
- Media/agent2/#6.3P Chpt. 5 active reading guide (Jan 22, 202(2).png +3 -0
- Media/agent2/#7.1P Chpt. 15 active reading guide (Mar 5, 202(1).png +3 -0
- Media/agent2/#7.4M The Determination of Keq for FeSCN2+ (Mar.png +3 -0
- Media/agent2/- #132 - Tutorial Outline.docx +0 -0
- Media/agent2/1-variable Confidence Interval Full write up examp.docx +0 -0
- Media/agent2/1-variable Hypothesis test Full write up example.docx +0 -0
- Media/agent2/10.1 p744 exercises 13,14,15 (this should be a(1).jpeg +3 -0
- Media/agent2/10.2 Infinite Series (Mar 26, 2021 at 2_49 PM).png +3 -0
- Media/agent2/10.2 The Area Problem_ Read section, then p752(2).jpeg +3 -0
- Media/agent2/10.2 The Area Problem_ Read section, then p752.jpeg +3 -0
- Media/agent2/10.3 p763 7-29 odds,16,37,42_ (May 31, 2020 at (1).png +3 -0
- Media/agent2/2-Prop Hypothesis test Full write up example.docx +0 -0
- Media/agent2/2-variable Confidence Interval Full write up examp.docx +0 -0
- Media/agent2/2-variableHypothesis test Full write up example.docx +0 -0
- Media/agent2/3D worksheet (sent out before break) (Apr 24, (1).jpeg +3 -0
- Media/agent2/3D worksheet (sent out before break) (Apr 24, .jpeg +3 -0
- Media/agent2/424_ Review Day 2_ Video 10 Significance Test .jpeg +3 -0
- Media/agent2/4_17_ Chapter 11 Practice Test 3 problems (May .png +3 -0
- Media/agent2/5.5 Optimization Problems (Oct 30, 2020 at 12_2.png +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,95 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
Media/agent2/[[:space:]]Jordan[[:space:]]Carter[[:space:]]-[[:space:]]2do[[:space:]]período[[:space:]]Las[[:space:]]Aventuras[[:space:]]de[[:space:]]J.docx filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
Media/agent2/ActivitySafetyGuidelinesComplianceFormrmsALLATH.pdf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
Media/agent2/Anónimo.docx filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
Media/agent2/Assignment[[:space:]]19.docx filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
Media/agent2/Assignment[[:space:]]Number[[:space:]]10[[:space:]]Applied[[:space:]]Stats.pdf filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
Media/agent2/AssignmentNumber4SNumber2.docx filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
Media/agent2/CamScanner[[:space:]]04-19-2021[[:space:]]13.44.pdf filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
Media/agent2/CamScanner[[:space:]]04-29-2021[[:space:]]14.22(1).pdf filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
Media/agent2/CamScanner[[:space:]]04-30-2021[[:space:]]15.22.pdf filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
Media/agent2/CamScanner[[:space:]]05-02-2021[[:space:]]23.48.pdf filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
Media/agent2/CamScanner[[:space:]]05-04-2021[[:space:]]21.22.pdf filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
Media/agent2/CamScanner[[:space:]]05-12-2021[[:space:]]14.07.pdf filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
Media/agent2/CamScanner[[:space:]]05-26-2021[[:space:]]20.45.pdf filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
Media/agent2/CamScanner[[:space:]]05-26-2021[[:space:]]21.32.pdf filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
Media/agent2/CamScanner[[:space:]]05-26-2021[[:space:]]21.36.pdf filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
Media/agent2/Carter_Final[[:space:]]Draft_.docx filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
Media/agent2/Chem[[:space:]]test.docx filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
Media/agent2/Classroom/\#A1[[:space:]]_[[:space:]]B1[[:space:]]-[[:space:]][[:space:]]1er[[:space:]]Período_[[:space:]][[:space:]]Español[[:space:]][[:space:]]AP[[:space:]][[:space:]]-[[:space:]]Sra.[[:space:]]Past/Copy[[:space:]]of[[:space:]]Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Temas[[:space:]]2_[[:space:]]2020[[:space:]]-[[:space:]]P.[[:space:]]103_.docx filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
Media/agent2/Classroom/\#A1[[:space:]]_[[:space:]]B1[[:space:]]-[[:space:]][[:space:]]1er[[:space:]]Período_[[:space:]][[:space:]]Español[[:space:]][[:space:]]AP[[:space:]][[:space:]]-[[:space:]]Sra.[[:space:]]Past/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]2020-[[:space:]]Hoja[[:space:]]auditiva[[:space:]]El[[:space:]]Grit.docx filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
Media/agent2/Classroom/\#A1[[:space:]]_[[:space:]]B1[[:space:]]-[[:space:]][[:space:]]1er[[:space:]]Período_[[:space:]][[:space:]]Español[[:space:]][[:space:]]AP[[:space:]][[:space:]]-[[:space:]]Sra.[[:space:]]Past/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Adicción[[:space:]]al[[:space:]]celular-AP[[:space:]]Fich.docx filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
Media/agent2/Classroom/\#A1[[:space:]]_[[:space:]]B1[[:space:]]-[[:space:]][[:space:]]1er[[:space:]]Período_[[:space:]][[:space:]]Español[[:space:]][[:space:]]AP[[:space:]][[:space:]]-[[:space:]]Sra.[[:space:]]Past/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]EL[[:space:]]ESTRES.docx filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
Media/agent2/Classroom/\#A1[[:space:]]_[[:space:]]B1[[:space:]]-[[:space:]][[:space:]]1er[[:space:]]Período_[[:space:]][[:space:]]Español[[:space:]][[:space:]]AP[[:space:]][[:space:]]-[[:space:]]Sra.[[:space:]]Past/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]GRUPO[[:space:]]\#2[[:space:]][[:space:]]TEMAS[[:space:]]P.[[:space:]]108-[[:space:]]La[[:space:]]sust.docx filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
Media/agent2/Classroom/\#A1[[:space:]]_[[:space:]]B1[[:space:]]-[[:space:]][[:space:]]1er[[:space:]]Período_[[:space:]][[:space:]]Español[[:space:]][[:space:]]AP[[:space:]][[:space:]]-[[:space:]]Sra.[[:space:]]Past/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Nosotros,[[:space:]]No[[:space:]]ficha[[:space:]]de[[:space:]]traba.docx filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
Media/agent2/Classroom/5th[[:space:]]Period[[:space:]]10th[[:space:]]grade[[:space:]]English[[:space:]]5/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Hayes--Hercules_[[:space:]]The[[:space:]]Story.docx filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
Media/agent2/Classroom/5th[[:space:]]Period[[:space:]]Analyzing[[:space:]]the[[:space:]]Modern[[:space:]]World[[:space:]]Spring[[:space:]]2019/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Lawrence[[:space:]]of[[:space:]]Arabia[[:space:]]question[[:space:]]8_a.docx filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
Media/agent2/Classroom/AP[[:space:]]English[[:space:]]Lit[[:space:]]Fall[[:space:]]2021[[:space:]]Period[[:space:]]1,[[:space:]]Ms.[[:space:]]Morrison/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#4[[:space:]]Poetry[[:space:]]Chapbook.docx filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
Media/agent2/Classroom/Biology[[:space:]]\[Fall[[:space:]]_18[[:space:]]Turner\][[:space:]]Pd[[:space:]]6/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Biodiversity[[:space:]]Field[[:space:]]Exploration_.docx filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
Media/agent2/Classroom/Biology[[:space:]]\[Fall[[:space:]]_18[[:space:]]Turner\][[:space:]]Pd[[:space:]]6/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Fermentation[[:space:]]Recipe[[:space:]]Project.docx filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
Media/agent2/Classroom/Biology[[:space:]]\[Spring[[:space:]]_19[[:space:]]Turner\][[:space:]]Period[[:space:]]6/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Karyotype[[:space:]]and[[:space:]]Learn[[:space:]]Genetics[[:space:]]We.docx filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
Media/agent2/Classroom/Chemistry[[:space:]]4th[[:space:]]period-1st[[:space:]]semester[[:space:]]4th[[:space:]]period-1st[[:space:]]s/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]3.3[[:space:]]Kinetics[[:space:]]Written[[:space:]]Lab[[:space:]]Report.docx filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
Media/agent2/Classroom/Español[[:space:]]AP[[:space:]]\[AM\][[:space:]]1er[[:space:]]Período[[:space:]]2do[[:space:]]Semestre[[:space:]]-[[:space:]]Sra.[[:space:]]Pa/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]El[[:space:]]Bienestar[[:space:]]Social-[[:space:]]Triá.[[:space:]]35-37.docx filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
Media/agent2/Classroom/Español[[:space:]]III[[:space:]]-[[:space:]]2019-2020[[:space:]]-[[:space:]]Sra.[[:space:]]Rivera[[:space:]]2do[[:space:]]-[[:space:]][[:space:]]Perío/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]AP[[:space:]]Spanish[[:space:]]Language_[[:space:]]Timed[[:space:]]AP[[:space:]]E.docx filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
Media/agent2/Classroom/Español[[:space:]]III[[:space:]]-[[:space:]]2019-2020[[:space:]]-[[:space:]]Sra.[[:space:]]Rivera[[:space:]]2do[[:space:]]-[[:space:]][[:space:]]Perío/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Copy[[:space:]]of[[:space:]]Las[[:space:]]Aventuras[[:space:]]de[[:space:]]Juan[[:space:]]B.docx filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
Media/agent2/Classroom/Español[[:space:]]III[[:space:]]-[[:space:]]2019-2020[[:space:]]-[[:space:]]Sra.[[:space:]]Rivera[[:space:]]2do[[:space:]]-[[:space:]][[:space:]]Perío/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Las[[:space:]]Aventura[[:space:]]de[[:space:]]Juan[[:space:]]Bobo[[:space:]]Parte.docx filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
Media/agent2/Classroom/Español[[:space:]]III[[:space:]]-[[:space:]]2019-2020[[:space:]]-[[:space:]]Sra.[[:space:]]Rivera[[:space:]]2do[[:space:]]-[[:space:]][[:space:]]Perío/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Las[[:space:]]Aventuras[[:space:]]de[[:space:]]Juan[[:space:]]Bobo[[:space:]]PART.docx filter=lfs diff=lfs merge=lfs -text
|
| 96 |
+
Media/agent2/Classroom/Introduction[[:space:]]to[[:space:]]Computer[[:space:]]Science[[:space:]]Fall[[:space:]]2018[[:space:]]Period[[:space:]]/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Journal[[:space:]]Entry[[:space:]]1_[[:space:]]What[[:space:]]Makes[[:space:]]A[[:space:]]C.docx filter=lfs diff=lfs merge=lfs -text
|
| 97 |
+
Media/agent2/Classroom/P.3A[[:space:]]AP[[:space:]]Chem[[:space:]]Nguyen[[:space:]]Fall[[:space:]]2020[[:space:]]3rd[[:space:]]period,[[:space:]]A/CamScanner[[:space:]]04-16-2021[[:space:]]13.54.pdf filter=lfs diff=lfs merge=lfs -text
|
| 98 |
+
Media/agent2/Classroom/P.3A[[:space:]]AP[[:space:]]Chem[[:space:]]Nguyen[[:space:]]Fall[[:space:]]2020[[:space:]]3rd[[:space:]]period,[[:space:]]A/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Molecule-Shapes-Student-Hand.pdf filter=lfs diff=lfs merge=lfs -text
|
| 99 |
+
Media/agent2/Classroom/P5.[[:space:]]AmStud-English[[:space:]]-[[:space:]]FOSTER[[:space:]]Semester[[:space:]]1[[:space:]]_[[:space:]]2020-2021/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Foster__Omelas_[[:space:]]Reflection.docx filter=lfs diff=lfs merge=lfs -text
|
| 100 |
+
Media/agent2/Copy[[:space:]]of[[:space:]]2021-2022[[:space:]]Student[[:space:]]Parking[[:space:]]agreement.docx filter=lfs diff=lfs merge=lfs -text
|
| 101 |
+
Media/agent2/Copy[[:space:]]of[[:space:]]Econ[[:space:]]Unit[[:space:]]Study[[:space:]]Guide[[:space:]]2021.docx filter=lfs diff=lfs merge=lfs -text
|
| 102 |
+
Media/agent2/Edited[[:space:]]-[[:space:]]Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Foster_American[[:space:]]Stu.pdf filter=lfs diff=lfs merge=lfs -text
|
| 103 |
+
Media/agent2/GPAthing(1).docx filter=lfs diff=lfs merge=lfs -text
|
| 104 |
+
Media/agent2/GPAthing.docx filter=lfs diff=lfs merge=lfs -text
|
| 105 |
+
Media/agent2/GPAthing.pdf filter=lfs diff=lfs merge=lfs -text
|
| 106 |
+
Media/agent2/HP0025.pdf filter=lfs diff=lfs merge=lfs -text
|
| 107 |
+
Media/agent2/HP0026.pdf filter=lfs diff=lfs merge=lfs -text
|
| 108 |
+
Media/agent2/HP0029.pdf filter=lfs diff=lfs merge=lfs -text
|
| 109 |
+
Media/agent2/HP0030.pdf filter=lfs diff=lfs merge=lfs -text
|
| 110 |
+
Media/agent2/HP0032.pdf filter=lfs diff=lfs merge=lfs -text
|
| 111 |
+
Media/agent2/HP0033.pdf filter=lfs diff=lfs merge=lfs -text
|
| 112 |
+
Media/agent2/Interview[[:space:]]With[[:space:]]Tracy[[:space:]]Toulou[[:space:]]Director[[:space:]]of[[:space:]]OTJ.docx filter=lfs diff=lfs merge=lfs -text
|
| 113 |
+
Media/agent2/Introduction.docx filter=lfs diff=lfs merge=lfs -text
|
| 114 |
+
Media/agent2/Javier[[:space:]]Carter[[:space:]]A[[:space:]]Dios[[:space:]]Le[[:space:]]Pido[[:space:]][[:space:]]-[[:space:]]Español[[:space:]]III[[:space:]]B[[:space:]]-.docx filter=lfs diff=lfs merge=lfs -text
|
| 115 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]][[:space:]]\#[[:space:]]16_[[:space:]]🟧[[:space:]]🎧[[:space:]]📕✏️_[[:space:]]Triángul.[[:space:]]267.docx filter=lfs diff=lfs merge=lfs -text
|
| 116 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]][[:space:]]\#11[[:space:]]_🛎[[:space:]]Tocatimbre_[[:space:]].[[:space:]]223[[:space:]]-[[:space:]]227.docx filter=lfs diff=lfs merge=lfs -text
|
| 117 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]][[:space:]]\#30[[:space:]]TAREA_Triángulo[[:space:]]P.277-[[:space:]]279.docx filter=lfs diff=lfs merge=lfs -text
|
| 118 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]][[:space:]]AP[[:space:]][[:space:]]Prueba[[:space:]][[:space:]][[:space:]]Lectura.[[:space:]]284[[:space:]]a[[:space:]]286.docx filter=lfs diff=lfs merge=lfs -text
|
| 119 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]][[:space:]]AP[[:space:]]\[2020\][[:space:]]Repaso[[:space:]]VOCES[[:space:]]y[[:space:]]más__.docx filter=lfs diff=lfs merge=lfs -text
|
| 120 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]][[:space:]]Creative[[:space:]]Mug(1).docx filter=lfs diff=lfs merge=lfs -text
|
| 121 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]][[:space:]]Creative[[:space:]]Mug.docx filter=lfs diff=lfs merge=lfs -text
|
| 122 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#[[:space:]]14_[[:space:]]🟧[[:space:]]🗣[[:space:]]📕✏️TEMAS[[:space:]]4-[[:space:]]Las[[:space:]]re.docx filter=lfs diff=lfs merge=lfs -text
|
| 123 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#[[:space:]]5_[[:space:]]🟧[[:space:]][[:space:]]📕[[:space:]]TEMAS[[:space:]]3_[[:space:]]P.117-181_.docx filter=lfs diff=lfs merge=lfs -text
|
| 124 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#[[:space:]]6_[[:space:]]🟧[[:space:]][[:space:]]Presente[[:space:]]de[[:space:]]subjuntivo.docx filter=lfs diff=lfs merge=lfs -text
|
| 125 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#010[[:space:]]Tutorial[[:space:]]Outline.docx filter=lfs diff=lfs merge=lfs -text
|
| 126 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#018[[:space:]]Tutorial[[:space:]]Rough[[:space:]]Draft[[:space:]]Peer_.docx filter=lfs diff=lfs merge=lfs -text
|
| 127 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#121[[:space:]]-[[:space:]]Tutorial.docx filter=lfs diff=lfs merge=lfs -text
|
| 128 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#21-🔴[[:space:]]CLW[[:space:]]_[[:space:]]🟧[[:space:]]TAREA_[[:space:]]12_IV_20.docx filter=lfs diff=lfs merge=lfs -text
|
| 129 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#25[[:space:]]_[[:space:]]🟧[[:space:]]🎧[[:space:]]✏️Como[[:space:]]preparar[[:space:]]una.docx filter=lfs diff=lfs merge=lfs -text
|
| 130 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#27[[:space:]]🟧[[:space:]]Tarea_[[:space:]]TEMAS[[:space:]]5[[:space:]]America[[:space:]]L.docx filter=lfs diff=lfs merge=lfs -text
|
| 131 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#29[[:space:]]TAREA_Triángulo[[:space:]]P.[[:space:]]84-87[[:space:]]_L.docx filter=lfs diff=lfs merge=lfs -text
|
| 132 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#7_[[:space:]]🟧[[:space:]][[:space:]]🎧[[:space:]]✏️[[:space:]]TAREA_[[:space:]]5_II_2021_.docx filter=lfs diff=lfs merge=lfs -text
|
| 133 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]\#9[[:space:]]Assignment[[:space:]]Coil[[:space:]]Vessel.docx filter=lfs diff=lfs merge=lfs -text
|
| 134 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]1[[:space:]]Mass[[:space:]]Spectroscopy[[:space:]]-[[:space:]]S.pdf filter=lfs diff=lfs merge=lfs -text
|
| 135 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]11[[:space:]]Types[[:space:]]of[[:space:]]Solids[[:space:]]-[[:space:]]S.pdf filter=lfs diff=lfs merge=lfs -text
|
| 136 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]16[[:space:]]Heats[[:space:]]of[[:space:]]Formation[[:space:]]-[[:space:]]S.pdf filter=lfs diff=lfs merge=lfs -text
|
| 137 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]17[[:space:]]Rate[[:space:]]of[[:space:]]Reaction[[:space:]]-[[:space:]]S(1).pdf filter=lfs diff=lfs merge=lfs -text
|
| 138 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]1er[[:space:]]Período[[:space:]]AM[[:space:]]_[[:space:]]2021[[:space:]]-[[:space:]]Españo.docx filter=lfs diff=lfs merge=lfs -text
|
| 139 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]21[[:space:]]Reaction[[:space:]]Quotient[[:space:]]-[[:space:]]S.pdf filter=lfs diff=lfs merge=lfs -text
|
| 140 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]24[[:space:]]Common[[:space:]]Ion[[:space:]]Effect[[:space:]]on[[:space:]]Acid.pdf filter=lfs diff=lfs merge=lfs -text
|
| 141 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]2do[[:space:]]período[[:space:]]Las[[:space:]]Aventuras[[:space:]]de[[:space:]]Ju.docx filter=lfs diff=lfs merge=lfs -text
|
| 142 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]6[[:space:]]Photoelectron[[:space:]]Spetroscopy[[:space:]].pdf filter=lfs diff=lfs merge=lfs -text
|
| 143 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]8.6[[:space:]]Molecular[[:space:]]Structure[[:space:]]of[[:space:]]A.pdf filter=lfs diff=lfs merge=lfs -text
|
| 144 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]8.7[[:space:]]pH[[:space:]]and[[:space:]]pKa[[:space:]]student.pdf filter=lfs diff=lfs merge=lfs -text
|
| 145 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]AP[[:space:]]-[[:space:]]El[[:space:]]Presente[[:space:]]de[[:space:]]Subjuntivo_.docx filter=lfs diff=lfs merge=lfs -text
|
| 146 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]AP[[:space:]]-Presente[[:space:]]perfecto[[:space:]]de[[:space:]]subjun.docx filter=lfs diff=lfs merge=lfs -text
|
| 147 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]AP[[:space:]]_¿Qué[[:space:]]dice[[:space:]]el[[:space:]]mundo....__.docx filter=lfs diff=lfs merge=lfs -text
|
| 148 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]AP-[[:space:]]El[[:space:]]lenguaje[[:space:]]no[[:space:]]verbal.docx filter=lfs diff=lfs merge=lfs -text
|
| 149 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Acid[[:space:]]base[[:space:]]pogil.pdf filter=lfs diff=lfs merge=lfs -text
|
| 150 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Assignment[[:space:]]\#11.docx filter=lfs diff=lfs merge=lfs -text
|
| 151 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Ceramic[[:space:]]Artist[[:space:]]Presentation.docx filter=lfs diff=lfs merge=lfs -text
|
| 152 |
+
Media/agent2/Jordan[[:space:]]Carter[[:space:]]-[[:space:]]Chpt.[[:space:]]10[[:space:]]_[[:space:]]11[[:space:]]Active[[:space:]]reading.pdf filter=lfs diff=lfs merge=lfs -text
|
LICENSES.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Source licenses and attribution
|
| 2 |
+
|
| 3 |
+
Original document text and other local files have incomplete rights provenance and are not assigned a new license. Verified replacement images have per-item public-domain, CC0, CC BY 2.0/3.0/4.0, or CC BY-SA 2.0/2.5/4.0 terms. Consult the corresponding notice for each image; image rights do not establish rights to surrounding document text.
|
| 4 |
+
|
| 5 |
+
The direct source is the existing local document collection for two benchmark accounts. Selected embedded images were replaced with material from Wikimedia Commons, including public-domain and Creative Commons images. This collection is not an import of ASAP 2.0, STEM Writing, AVLectures, or the Kaggle resume dataset.
|
| 6 |
+
|
| 7 |
+
No blanket license is assigned to components whose reuse terms are undocumented. Source-specific declarations and per-item notices describe their respective content. Synthetic benchmark fixtures are identified separately from source-derived records.
|
Media/agent1/COMP 313/LearnBashAssignment.sh
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
########################################
|
| 4 |
+
# System Monitoring and File Analysis
|
| 5 |
+
# Author: Student Submission
|
| 6 |
+
########################################
|
| 7 |
+
|
| 8 |
+
LOG_FILE="system_report.log"
|
| 9 |
+
|
| 10 |
+
########################################
|
| 11 |
+
# Helper: Print and Log
|
| 12 |
+
########################################
|
| 13 |
+
log() {
|
| 14 |
+
echo "$1" | tee -a "$LOG_FILE"
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
########################################
|
| 18 |
+
# Part 1: Argument Validation
|
| 19 |
+
########################################
|
| 20 |
+
|
| 21 |
+
if [ $# -ne 1 ]; then
|
| 22 |
+
echo "Usage: $0 <directory_path>"
|
| 23 |
+
exit 1
|
| 24 |
+
fi
|
| 25 |
+
|
| 26 |
+
TARGET_DIR="$1"
|
| 27 |
+
|
| 28 |
+
if [ ! -d "$TARGET_DIR" ]; then
|
| 29 |
+
echo "Error: Directory does not exist."
|
| 30 |
+
exit 1
|
| 31 |
+
fi
|
| 32 |
+
|
| 33 |
+
# Clear previous log
|
| 34 |
+
> "$LOG_FILE"
|
| 35 |
+
|
| 36 |
+
log "===== SYSTEM REPORT ====="
|
| 37 |
+
log "Directory: $TARGET_DIR"
|
| 38 |
+
log "Generated at: $(date)"
|
| 39 |
+
log ""
|
| 40 |
+
|
| 41 |
+
########################################
|
| 42 |
+
# Part 2: Directory Analysis
|
| 43 |
+
########################################
|
| 44 |
+
|
| 45 |
+
log "---- Directory Analysis ----"
|
| 46 |
+
|
| 47 |
+
FILE_COUNT=$(find "$TARGET_DIR" -type f | wc -l)
|
| 48 |
+
DIR_COUNT=$(find "$TARGET_DIR" -type d | wc -l)
|
| 49 |
+
|
| 50 |
+
log "Total Files: $FILE_COUNT"
|
| 51 |
+
log "Total Subdirectories: $DIR_COUNT"
|
| 52 |
+
|
| 53 |
+
# Largest File
|
| 54 |
+
LARGEST_FILE=$(find "$TARGET_DIR" -type f -exec ls -S {} + 2>/dev/null | head -n 1)
|
| 55 |
+
SMALLEST_FILE=$(find "$TARGET_DIR" -type f -exec ls -Sr {} + 2>/dev/null | head -n 1)
|
| 56 |
+
|
| 57 |
+
log "Largest File: $LARGEST_FILE"
|
| 58 |
+
log "Smallest File: $SMALLEST_FILE"
|
| 59 |
+
|
| 60 |
+
# Disk Usage
|
| 61 |
+
DISK_USAGE=$(du -sh "$TARGET_DIR" | cut -f1)
|
| 62 |
+
log "Total Disk Usage: $DISK_USAGE"
|
| 63 |
+
|
| 64 |
+
log ""
|
| 65 |
+
|
| 66 |
+
########################################
|
| 67 |
+
# Part 3: Text File Processing
|
| 68 |
+
########################################
|
| 69 |
+
|
| 70 |
+
log "---- Text File Analysis ----"
|
| 71 |
+
|
| 72 |
+
TXT_FILES=$(find "$TARGET_DIR" -type f -name "*.txt")
|
| 73 |
+
TXT_COUNT=$(echo "$TXT_FILES" | grep -c ".txt")
|
| 74 |
+
|
| 75 |
+
log "Total .txt Files: $TXT_COUNT"
|
| 76 |
+
|
| 77 |
+
TOTAL_LINES=0
|
| 78 |
+
|
| 79 |
+
if [ "$TXT_COUNT" -gt 0 ]; then
|
| 80 |
+
|
| 81 |
+
TOTAL_LINES=$(cat $TXT_FILES 2>/dev/null | wc -l)
|
| 82 |
+
log "Total Lines in .txt Files: $TOTAL_LINES"
|
| 83 |
+
|
| 84 |
+
# Most common word
|
| 85 |
+
COMMON_WORD=$(cat $TXT_FILES 2>/dev/null \
|
| 86 |
+
| tr -cs '[:alnum:]' '\n' \
|
| 87 |
+
| tr '[:upper:]' '[:lower:]' \
|
| 88 |
+
| sort \
|
| 89 |
+
| uniq -c \
|
| 90 |
+
| sort -nr \
|
| 91 |
+
| head -n 1)
|
| 92 |
+
|
| 93 |
+
log "Most Common Word: $COMMON_WORD"
|
| 94 |
+
|
| 95 |
+
else
|
| 96 |
+
log "No .txt files found."
|
| 97 |
+
fi
|
| 98 |
+
|
| 99 |
+
log ""
|
| 100 |
+
|
| 101 |
+
########################################
|
| 102 |
+
# Part 4: Process Monitoring
|
| 103 |
+
########################################
|
| 104 |
+
|
| 105 |
+
log "---- Top CPU Processes ----"
|
| 106 |
+
ps -eo pid,comm,%cpu --sort=-%cpu | head -n 6 | tee -a "$LOG_FILE"
|
| 107 |
+
|
| 108 |
+
log ""
|
| 109 |
+
|
| 110 |
+
log "---- Top Memory Processes ----"
|
| 111 |
+
ps -eo pid,comm,%mem --sort=-%mem | head -n 6 | tee -a "$LOG_FILE"
|
| 112 |
+
|
| 113 |
+
log ""
|
| 114 |
+
|
| 115 |
+
########################################
|
| 116 |
+
# Completion Message
|
| 117 |
+
########################################
|
| 118 |
+
|
| 119 |
+
log "===== END OF REPORT ====="
|
Media/agent1/COMP 313/LogAnalyzer.c
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#include <stdio.h>
|
| 2 |
+
#include <stdlib.h>
|
| 3 |
+
#include <string.h>
|
| 4 |
+
#include <unistd.h>
|
| 5 |
+
#include <sys/wait.h>
|
| 6 |
+
|
| 7 |
+
#define MAX_LINE 256
|
| 8 |
+
#define MAX_USERS 100
|
| 9 |
+
|
| 10 |
+
/* =========================
|
| 11 |
+
User Statistics Struct
|
| 12 |
+
========================= */
|
| 13 |
+
typedef struct {
|
| 14 |
+
char username[50];
|
| 15 |
+
int process_count;
|
| 16 |
+
float total_cpu;
|
| 17 |
+
} UserStat;
|
| 18 |
+
|
| 19 |
+
/* =========================
|
| 20 |
+
Helper: Find or Add User
|
| 21 |
+
========================= */
|
| 22 |
+
int find_or_add_user(UserStat users[], int *user_count, char *username) {
|
| 23 |
+
|
| 24 |
+
for (int i = 0; i < *user_count; i++) {
|
| 25 |
+
if (strcmp(users[i].username, username) == 0) {
|
| 26 |
+
return i;
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
// Add new user
|
| 31 |
+
strcpy(users[*user_count].username, username);
|
| 32 |
+
users[*user_count].process_count = 0;
|
| 33 |
+
users[*user_count].total_cpu = 0.0;
|
| 34 |
+
|
| 35 |
+
(*user_count)++;
|
| 36 |
+
return (*user_count) - 1;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
/* =========================
|
| 40 |
+
Main Program
|
| 41 |
+
========================= */
|
| 42 |
+
int main(int argc, char *argv[]) {
|
| 43 |
+
|
| 44 |
+
if (argc != 2) {
|
| 45 |
+
fprintf(stderr, "Usage: %s <log_file>\n", argv[0]);
|
| 46 |
+
return 1;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
FILE *file = fopen(argv[1], "r");
|
| 50 |
+
if (!file) {
|
| 51 |
+
perror("Error opening file");
|
| 52 |
+
return 1;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
UserStat users[MAX_USERS];
|
| 56 |
+
int user_count = 0;
|
| 57 |
+
|
| 58 |
+
int total_entries = 0;
|
| 59 |
+
float total_cpu = 0.0;
|
| 60 |
+
float total_mem = 0.0;
|
| 61 |
+
|
| 62 |
+
char line[MAX_LINE];
|
| 63 |
+
|
| 64 |
+
/* =========================
|
| 65 |
+
Read and Parse File
|
| 66 |
+
========================= */
|
| 67 |
+
while (fgets(line, sizeof(line), file)) {
|
| 68 |
+
|
| 69 |
+
char timestamp[20];
|
| 70 |
+
char username[50];
|
| 71 |
+
char process[50];
|
| 72 |
+
float cpu, mem;
|
| 73 |
+
|
| 74 |
+
if (sscanf(line, "%s %s %s %f %f",
|
| 75 |
+
timestamp, username, process, &cpu, &mem) != 5)
|
| 76 |
+
continue;
|
| 77 |
+
|
| 78 |
+
total_entries++;
|
| 79 |
+
total_cpu += cpu;
|
| 80 |
+
total_mem += mem;
|
| 81 |
+
|
| 82 |
+
int index = find_or_add_user(users, &user_count, username);
|
| 83 |
+
users[index].process_count++;
|
| 84 |
+
users[index].total_cpu += cpu;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
fclose(file);
|
| 88 |
+
|
| 89 |
+
/* =========================
|
| 90 |
+
Create Pipes
|
| 91 |
+
========================= */
|
| 92 |
+
int cpu_pipe[2];
|
| 93 |
+
int mem_pipe[2];
|
| 94 |
+
|
| 95 |
+
pipe(cpu_pipe);
|
| 96 |
+
pipe(mem_pipe);
|
| 97 |
+
|
| 98 |
+
/* =========================
|
| 99 |
+
Child Process 1 - CPU
|
| 100 |
+
========================= */
|
| 101 |
+
pid_t cpu_child = fork();
|
| 102 |
+
|
| 103 |
+
if (cpu_child == 0) {
|
| 104 |
+
|
| 105 |
+
close(cpu_pipe[0]);
|
| 106 |
+
|
| 107 |
+
float avg_cpu = total_cpu / total_entries;
|
| 108 |
+
write(cpu_pipe[1], &avg_cpu, sizeof(avg_cpu));
|
| 109 |
+
|
| 110 |
+
close(cpu_pipe[1]);
|
| 111 |
+
exit(0);
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
/* =========================
|
| 115 |
+
Child Process 2 - Memory
|
| 116 |
+
========================= */
|
| 117 |
+
pid_t mem_child = fork();
|
| 118 |
+
|
| 119 |
+
if (mem_child == 0) {
|
| 120 |
+
|
| 121 |
+
close(mem_pipe[0]);
|
| 122 |
+
|
| 123 |
+
float avg_mem = total_mem / total_entries;
|
| 124 |
+
write(mem_pipe[1], &avg_mem, sizeof(avg_mem));
|
| 125 |
+
|
| 126 |
+
close(mem_pipe[1]);
|
| 127 |
+
exit(0);
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
/* =========================
|
| 131 |
+
Parent Process
|
| 132 |
+
========================= */
|
| 133 |
+
close(cpu_pipe[1]);
|
| 134 |
+
close(mem_pipe[1]);
|
| 135 |
+
|
| 136 |
+
float avg_cpu, avg_mem;
|
| 137 |
+
|
| 138 |
+
read(cpu_pipe[0], &avg_cpu, sizeof(avg_cpu));
|
| 139 |
+
read(mem_pipe[0], &avg_mem, sizeof(avg_mem));
|
| 140 |
+
|
| 141 |
+
wait(NULL);
|
| 142 |
+
wait(NULL);
|
| 143 |
+
|
| 144 |
+
/* =========================
|
| 145 |
+
Print Results
|
| 146 |
+
========================= */
|
| 147 |
+
printf("===== LOG ANALYSIS =====\n");
|
| 148 |
+
printf("Total Entries: %d\n", total_entries);
|
| 149 |
+
printf("Average CPU: %.2f\n", avg_cpu);
|
| 150 |
+
printf("Average Memory: %.2f\n\n", avg_mem);
|
| 151 |
+
|
| 152 |
+
printf("--- User Stats ---\n");
|
| 153 |
+
|
| 154 |
+
for (int i = 0; i < user_count; i++) {
|
| 155 |
+
printf("%s -> Processes: %d CPU Total: %.2f\n",
|
| 156 |
+
users[i].username,
|
| 157 |
+
users[i].process_count,
|
| 158 |
+
users[i].total_cpu);
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
return 0;
|
| 162 |
+
}
|
Media/agent1/COMP 222/A1.java
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import java.util.*;
|
| 2 |
+
|
| 3 |
+
public class TextAnalyticsEngine {
|
| 4 |
+
|
| 5 |
+
/* ==============================
|
| 6 |
+
Part 1: Word Frequency Counter
|
| 7 |
+
============================== */
|
| 8 |
+
public static HashMap<String, Integer> wordFrequency(String text) {
|
| 9 |
+
|
| 10 |
+
HashMap<String, Integer> freqMap = new HashMap<>();
|
| 11 |
+
|
| 12 |
+
String cleaned = text.toLowerCase().replaceAll("[^a-z0-9 ]", "");
|
| 13 |
+
String[] words = cleaned.split("\\s+");
|
| 14 |
+
|
| 15 |
+
for (String word : words) {
|
| 16 |
+
if (word.isEmpty()) continue;
|
| 17 |
+
freqMap.put(word, freqMap.getOrDefault(word, 0) + 1);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
return freqMap;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
/* ==============================
|
| 24 |
+
Part 2: Word Position Index
|
| 25 |
+
============================== */
|
| 26 |
+
public static HashMap<String, List<Integer>> wordPositions(String text) {
|
| 27 |
+
|
| 28 |
+
HashMap<String, List<Integer>> positionMap = new HashMap<>();
|
| 29 |
+
|
| 30 |
+
String cleaned = text.toLowerCase().replaceAll("[^a-z0-9 ]", "");
|
| 31 |
+
String[] words = cleaned.split("\\s+");
|
| 32 |
+
|
| 33 |
+
for (int i = 0; i < words.length; i++) {
|
| 34 |
+
|
| 35 |
+
String word = words[i];
|
| 36 |
+
if (word.isEmpty()) continue;
|
| 37 |
+
|
| 38 |
+
positionMap.putIfAbsent(word, new ArrayList<>());
|
| 39 |
+
positionMap.get(word).add(i);
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
return positionMap;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
/* ==============================
|
| 46 |
+
Part 3: Top-K Frequent Words
|
| 47 |
+
============================== */
|
| 48 |
+
public static List<String> topKFrequent(HashMap<String, Integer> freqMap, int k) {
|
| 49 |
+
|
| 50 |
+
PriorityQueue<Map.Entry<String, Integer>> minHeap =
|
| 51 |
+
new PriorityQueue<>(Comparator.comparingInt(Map.Entry::getValue));
|
| 52 |
+
|
| 53 |
+
for (Map.Entry<String, Integer> entry : freqMap.entrySet()) {
|
| 54 |
+
|
| 55 |
+
minHeap.offer(entry);
|
| 56 |
+
|
| 57 |
+
if (minHeap.size() > k) {
|
| 58 |
+
minHeap.poll();
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
List<String> result = new ArrayList<>();
|
| 63 |
+
|
| 64 |
+
while (!minHeap.isEmpty()) {
|
| 65 |
+
result.add(minHeap.poll().getKey());
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
Collections.reverse(result);
|
| 69 |
+
return result;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
/* ==============================
|
| 73 |
+
Part 4: Duplicate Document Detection
|
| 74 |
+
============================== */
|
| 75 |
+
public static boolean areDocumentsDuplicate(String doc1, String doc2) {
|
| 76 |
+
|
| 77 |
+
HashMap<String, Integer> freq1 = wordFrequency(doc1);
|
| 78 |
+
HashMap<String, Integer> freq2 = wordFrequency(doc2);
|
| 79 |
+
|
| 80 |
+
return freq1.equals(freq2);
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
/* ==============================
|
| 84 |
+
Part 5: Jaccard Similarity
|
| 85 |
+
============================== */
|
| 86 |
+
public static double jaccardSimilarity(String doc1, String doc2) {
|
| 87 |
+
|
| 88 |
+
Set<String> set1 = wordFrequency(doc1).keySet();
|
| 89 |
+
Set<String> set2 = wordFrequency(doc2).keySet();
|
| 90 |
+
|
| 91 |
+
Set<String> intersection = new HashSet<>(set1);
|
| 92 |
+
intersection.retainAll(set2);
|
| 93 |
+
|
| 94 |
+
Set<String> union = new HashSet<>(set1);
|
| 95 |
+
union.addAll(set2);
|
| 96 |
+
|
| 97 |
+
if (union.size() == 0) return 0.0;
|
| 98 |
+
|
| 99 |
+
return (double) intersection.size() / union.size();
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
/* ==============================
|
| 103 |
+
Utility Print Methods
|
| 104 |
+
============================== */
|
| 105 |
+
public static void printFrequency(HashMap<String, Integer> freqMap) {
|
| 106 |
+
for (String word : freqMap.keySet()) {
|
| 107 |
+
System.out.println(word + " -> " + freqMap.get(word));
|
| 108 |
+
}
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
public static void printPositions(HashMap<String, List<Integer>> posMap) {
|
| 112 |
+
for (String word : posMap.keySet()) {
|
| 113 |
+
System.out.println(word + " -> " + posMap.get(word));
|
| 114 |
+
}
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
/* ==============================
|
| 118 |
+
Main Testing Driver
|
| 119 |
+
============================== */
|
| 120 |
+
public static void main(String[] args) {
|
| 121 |
+
|
| 122 |
+
String doc1 = "The cat sat on the mat. The cat is happy.";
|
| 123 |
+
String doc2 = "The cat is happy and sat on the mat.";
|
| 124 |
+
|
| 125 |
+
System.out.println("---- Word Frequency ----");
|
| 126 |
+
HashMap<String, Integer> freq = wordFrequency(doc1);
|
| 127 |
+
printFrequency(freq);
|
| 128 |
+
|
| 129 |
+
System.out.println("\n---- Word Positions ----");
|
| 130 |
+
HashMap<String, List<Integer>> positions = wordPositions(doc1);
|
| 131 |
+
printPositions(positions);
|
| 132 |
+
|
| 133 |
+
System.out.println("\n---- Top 3 Frequent Words ----");
|
| 134 |
+
System.out.println(topKFrequent(freq, 3));
|
| 135 |
+
|
| 136 |
+
System.out.println("\n---- Duplicate Check ----");
|
| 137 |
+
System.out.println(areDocumentsDuplicate(doc1, doc2));
|
| 138 |
+
|
| 139 |
+
System.out.println("\n---- Jaccard Similarity ----");
|
| 140 |
+
System.out.println(jaccardSimilarity(doc1, doc2));
|
| 141 |
+
}
|
| 142 |
+
}
|
Media/agent1/COMP 222/A2.java
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import java.util.*;
|
| 2 |
+
|
| 3 |
+
public class SubwaySystem {
|
| 4 |
+
|
| 5 |
+
private HashMap<String, List<Connection>> graph;
|
| 6 |
+
|
| 7 |
+
public SubwaySystem() {
|
| 8 |
+
graph = new HashMap<>();
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
/* ========================
|
| 12 |
+
Part 1: Graph Construction
|
| 13 |
+
======================== */
|
| 14 |
+
|
| 15 |
+
public void addStation(String station) {
|
| 16 |
+
graph.putIfAbsent(station, new ArrayList<>());
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
public void addConnection(String from, String to, int time, String line) {
|
| 20 |
+
|
| 21 |
+
addStation(from);
|
| 22 |
+
addStation(to);
|
| 23 |
+
|
| 24 |
+
graph.get(from).add(new Connection(to, time, line));
|
| 25 |
+
graph.get(to).add(new Connection(from, time, line));
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
/* ========================
|
| 29 |
+
Part 2: Connectivity Check
|
| 30 |
+
======================== */
|
| 31 |
+
|
| 32 |
+
public boolean canTravel(String start, String destination) {
|
| 33 |
+
|
| 34 |
+
if (!graph.containsKey(start) || !graph.containsKey(destination))
|
| 35 |
+
return false;
|
| 36 |
+
|
| 37 |
+
Set<String> visited = new HashSet<>();
|
| 38 |
+
Queue<String> queue = new LinkedList<>();
|
| 39 |
+
|
| 40 |
+
queue.add(start);
|
| 41 |
+
visited.add(start);
|
| 42 |
+
|
| 43 |
+
while (!queue.isEmpty()) {
|
| 44 |
+
|
| 45 |
+
String current = queue.poll();
|
| 46 |
+
|
| 47 |
+
if (current.equals(destination))
|
| 48 |
+
return true;
|
| 49 |
+
|
| 50 |
+
for (Connection conn : graph.get(current)) {
|
| 51 |
+
|
| 52 |
+
if (!visited.contains(conn.destination)) {
|
| 53 |
+
visited.add(conn.destination);
|
| 54 |
+
queue.add(conn.destination);
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
return false;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
/* ========================
|
| 63 |
+
Part 3: Shortest Path (Fewest Stops)
|
| 64 |
+
======================== */
|
| 65 |
+
|
| 66 |
+
public List<String> fewestStops(String start, String destination) {
|
| 67 |
+
|
| 68 |
+
HashMap<String, String> parent = new HashMap<>();
|
| 69 |
+
Queue<String> queue = new LinkedList<>();
|
| 70 |
+
Set<String> visited = new HashSet<>();
|
| 71 |
+
|
| 72 |
+
queue.add(start);
|
| 73 |
+
visited.add(start);
|
| 74 |
+
|
| 75 |
+
while (!queue.isEmpty()) {
|
| 76 |
+
|
| 77 |
+
String current = queue.poll();
|
| 78 |
+
|
| 79 |
+
if (current.equals(destination))
|
| 80 |
+
break;
|
| 81 |
+
|
| 82 |
+
for (Connection conn : graph.get(current)) {
|
| 83 |
+
|
| 84 |
+
if (!visited.contains(conn.destination)) {
|
| 85 |
+
visited.add(conn.destination);
|
| 86 |
+
parent.put(conn.destination, current);
|
| 87 |
+
queue.add(conn.destination);
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
return reconstructPath(parent, start, destination);
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
/* ========================
|
| 96 |
+
Part 4: Fastest Route (Dijkstra)
|
| 97 |
+
======================== */
|
| 98 |
+
|
| 99 |
+
public List<String> fastestRoute(String start, String destination) {
|
| 100 |
+
|
| 101 |
+
HashMap<String, Integer> dist = new HashMap<>();
|
| 102 |
+
HashMap<String, String> parent = new HashMap<>();
|
| 103 |
+
|
| 104 |
+
PriorityQueue<String> pq =
|
| 105 |
+
new PriorityQueue<>(Comparator.comparingInt(dist::get));
|
| 106 |
+
|
| 107 |
+
for (String station : graph.keySet()) {
|
| 108 |
+
dist.put(station, Integer.MAX_VALUE);
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
dist.put(start, 0);
|
| 112 |
+
pq.add(start);
|
| 113 |
+
|
| 114 |
+
while (!pq.isEmpty()) {
|
| 115 |
+
|
| 116 |
+
String current = pq.poll();
|
| 117 |
+
|
| 118 |
+
for (Connection conn : graph.get(current)) {
|
| 119 |
+
|
| 120 |
+
int newDist = dist.get(current) + conn.travelTime;
|
| 121 |
+
|
| 122 |
+
if (newDist < dist.get(conn.destination)) {
|
| 123 |
+
dist.put(conn.destination, newDist);
|
| 124 |
+
parent.put(conn.destination, current);
|
| 125 |
+
pq.add(conn.destination);
|
| 126 |
+
}
|
| 127 |
+
}
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
System.out.println("Fastest time: " + dist.get(destination));
|
| 131 |
+
return reconstructPath(parent, start, destination);
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
/* ========================
|
| 135 |
+
Part 5: Transfer Counter
|
| 136 |
+
======================== */
|
| 137 |
+
|
| 138 |
+
public int countTransfers(List<String> path) {
|
| 139 |
+
|
| 140 |
+
if (path.size() < 2) return 0;
|
| 141 |
+
|
| 142 |
+
int transfers = 0;
|
| 143 |
+
String currentLine = null;
|
| 144 |
+
|
| 145 |
+
for (int i = 0; i < path.size() - 1; i++) {
|
| 146 |
+
|
| 147 |
+
String from = path.get(i);
|
| 148 |
+
String to = path.get(i + 1);
|
| 149 |
+
|
| 150 |
+
for (Connection conn : graph.get(from)) {
|
| 151 |
+
if (conn.destination.equals(to)) {
|
| 152 |
+
|
| 153 |
+
if (currentLine == null) {
|
| 154 |
+
currentLine = conn.line;
|
| 155 |
+
} else if (!currentLine.equals(conn.line)) {
|
| 156 |
+
transfers++;
|
| 157 |
+
currentLine = conn.line;
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
return transfers;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
/* ========================
|
| 167 |
+
Part 6: System Statistics
|
| 168 |
+
======================== */
|
| 169 |
+
|
| 170 |
+
public int totalStations() {
|
| 171 |
+
return graph.size();
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
public int totalConnections() {
|
| 175 |
+
|
| 176 |
+
int total = 0;
|
| 177 |
+
for (String station : graph.keySet()) {
|
| 178 |
+
total += graph.get(station).size();
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
return total / 2; // Undirected graph
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
public String mostConnectedStation() {
|
| 185 |
+
|
| 186 |
+
String best = null;
|
| 187 |
+
int max = 0;
|
| 188 |
+
|
| 189 |
+
for (String station : graph.keySet()) {
|
| 190 |
+
|
| 191 |
+
int degree = graph.get(station).size();
|
| 192 |
+
|
| 193 |
+
if (degree > max) {
|
| 194 |
+
max = degree;
|
| 195 |
+
best = station;
|
| 196 |
+
}
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
return best;
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
/* ========================
|
| 203 |
+
Helper: Path Reconstruction
|
| 204 |
+
======================== */
|
| 205 |
+
|
| 206 |
+
private List<String> reconstructPath(
|
| 207 |
+
HashMap<String, String> parent,
|
| 208 |
+
String start,
|
| 209 |
+
String destination) {
|
| 210 |
+
|
| 211 |
+
List<String> path = new ArrayList<>();
|
| 212 |
+
String current = destination;
|
| 213 |
+
|
| 214 |
+
while (current != null) {
|
| 215 |
+
path.add(current);
|
| 216 |
+
current = parent.get(current);
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
Collections.reverse(path);
|
| 220 |
+
|
| 221 |
+
if (!path.get(0).equals(start))
|
| 222 |
+
return new ArrayList<>();
|
| 223 |
+
|
| 224 |
+
return path;
|
| 225 |
+
}
|
| 226 |
+
}
|
Media/agent1/COMP 222/A3.java
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import java.util.Arrays;
|
| 2 |
+
import java.util.Comparator;
|
| 3 |
+
|
| 4 |
+
class Job {
|
| 5 |
+
int start;
|
| 6 |
+
int finish;
|
| 7 |
+
int profit;
|
| 8 |
+
|
| 9 |
+
public Job(int start, int finish, int profit) {
|
| 10 |
+
this.start = start;
|
| 11 |
+
this.finish = finish;
|
| 12 |
+
this.profit = profit;
|
| 13 |
+
}
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
public class WeightedIntervalScheduling {
|
| 17 |
+
|
| 18 |
+
// Binary search to find the latest job (before current)
|
| 19 |
+
// that doesn't conflict
|
| 20 |
+
static int findLastNonConflicting(Job[] jobs, int index) {
|
| 21 |
+
int low = 0;
|
| 22 |
+
int high = index - 1;
|
| 23 |
+
|
| 24 |
+
while (low <= high) {
|
| 25 |
+
int mid = (low + high) / 2;
|
| 26 |
+
|
| 27 |
+
if (jobs[mid].finish <= jobs[index].start) {
|
| 28 |
+
if (jobs[mid + 1].finish <= jobs[index].start)
|
| 29 |
+
low = mid + 1;
|
| 30 |
+
else
|
| 31 |
+
return mid;
|
| 32 |
+
} else {
|
| 33 |
+
high = mid - 1;
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
return -1;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
// Dynamic Programming Solution
|
| 40 |
+
static int maxProfit(Job[] jobs) {
|
| 41 |
+
|
| 42 |
+
// Step 1: Sort jobs by finish time
|
| 43 |
+
Arrays.sort(jobs, Comparator.comparingInt(j -> j.finish));
|
| 44 |
+
|
| 45 |
+
int n = jobs.length;
|
| 46 |
+
int[] dp = new int[n];
|
| 47 |
+
|
| 48 |
+
// Base case
|
| 49 |
+
dp[0] = jobs[0].profit;
|
| 50 |
+
|
| 51 |
+
for (int i = 1; i < n; i++) {
|
| 52 |
+
|
| 53 |
+
// Include current job
|
| 54 |
+
int includeProfit = jobs[i].profit;
|
| 55 |
+
|
| 56 |
+
int lastNonConflict = findLastNonConflicting(jobs, i);
|
| 57 |
+
if (lastNonConflict != -1) {
|
| 58 |
+
includeProfit += dp[lastNonConflict];
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
// Exclude current job
|
| 62 |
+
int excludeProfit = dp[i - 1];
|
| 63 |
+
|
| 64 |
+
// Store best result
|
| 65 |
+
dp[i] = Math.max(includeProfit, excludeProfit);
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
return dp[n - 1];
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
public static void main(String[] args) {
|
| 72 |
+
|
| 73 |
+
Job[] jobs = {
|
| 74 |
+
new Job(1, 3, 50),
|
| 75 |
+
new Job(2, 5, 20),
|
| 76 |
+
new Job(4, 6, 70),
|
| 77 |
+
new Job(6, 7, 60),
|
| 78 |
+
new Job(5, 8, 30),
|
| 79 |
+
new Job(7, 9, 40)
|
| 80 |
+
};
|
| 81 |
+
|
| 82 |
+
int result = maxProfit(jobs);
|
| 83 |
+
System.out.println("Maximum Profit: " + result);
|
| 84 |
+
}
|
| 85 |
+
}
|
Media/agent1/safari trip pictures/Elephantvideo.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7cd66a941d8883505826e1b191c6c45f21a2f9cad05301f1ce62da676b431a3
|
| 3 |
+
size 3617117
|
Media/agent1/safari trip pictures/GiraffeVideo.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd31450f26908a65e60b6d3add44e0dc2af4fe0ea35d971926c28a1bc4b737f4
|
| 3 |
+
size 757768
|
Media/agent1/safari trip pictures/elephant_africa_safari_serengeti_0.jpg
ADDED
|
Git LFS Details
|
Media/agent1/safari trip pictures/elephant_tanzania_africa_serengeti.jpg
ADDED
|
Git LFS Details
|
Media/agent1/safari trip pictures/gazelle_africa_safari_serengeti_0.jpg
ADDED
|
Git LFS Details
|
Media/agent1/safari trip pictures/giraffe_reticulated_giraffe_neck.jpg
ADDED
|
Git LFS Details
|
Media/agent1/safari trip pictures/male_lion_african_lion.jpg
ADDED
|
Git LFS Details
|
Media/agent1/safari trip pictures/zebra_baby_zebra_africa.jpg
ADDED
|
Git LFS Details
|
Media/agent2/ 1-prop Confidence Interval Full write up example.docx
ADDED
|
Binary file (6.92 kB). View file
|
|
|
Media/agent2/ Jordan Carter - 2do período Las Aventuras de J.docx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5e669179aaf7337c2cb2fb2f4e8015166e5eae545c4bfb94294cbfe97280efb
|
| 3 |
+
size 343192
|
Media/agent2/#1.9 P Active reading guide Chpt. 1 _ 2 (Sep 17, 2(4).png
ADDED
|
Git LFS Details
|
Media/agent2/#1.9 P Active reading guide Chpt. 1 _ 2 (Sep 17, 2(5).png
ADDED
|
Git LFS Details
|
Media/agent2/#1.9 P Active reading guide Chpt. 1 _ 2 (Sep 18, 2(3).png
ADDED
|
Git LFS Details
|
Media/agent2/#1.9 P Active reading guide Chpt. 1 _ 2 (Sep 18, 2(5).png
ADDED
|
Git LFS Details
|
Media/agent2/#11 Sculptural Assignment (Jun 1, 2021 at 9_59 AM).png
ADDED
|
Git LFS Details
|
Media/agent2/#2.4M Phet Molecule shapes (Oct 6, 2020 at 2_22.png
ADDED
|
Git LFS Details
|
Media/agent2/#2.4M Phet Molecule shapes (Oct 6, 2020 at 2_23.png
ADDED
|
Git LFS Details
|
Media/agent2/#3.3M IMF_s _ Physical properties modeling acti(2).png
ADDED
|
Git LFS Details
|
Media/agent2/#4 Linear Regression Practice (Sep 9, 2021 at 1.png
ADDED
|
Git LFS Details
|
Media/agent2/#5 Two-Way ANOVA Notes and Assignment_ Popcorn (Fe(3).png
ADDED
|
Git LFS Details
|
Media/agent2/#6 ANOVA Exam (Feb 17, 2022 at 12_52 PM).png
ADDED
|
Git LFS Details
|
Media/agent2/#6 ANOVA Exam (Feb 17, 2022 at 12_53 PM)(1).png
ADDED
|
Git LFS Details
|
Media/agent2/#6 ANOVA Exam (Feb 17, 2022 at 12_58 PM).png
ADDED
|
Git LFS Details
|
Media/agent2/#6 ANOVA Exam (Feb 17, 2022 at 9_55 PM).png
ADDED
|
Git LFS Details
|
Media/agent2/#6.3P Chpt. 5 active reading guide (Jan 22, 202(2).png
ADDED
|
Git LFS Details
|
Media/agent2/#7.1P Chpt. 15 active reading guide (Mar 5, 202(1).png
ADDED
|
Git LFS Details
|
Media/agent2/#7.4M The Determination of Keq for FeSCN2+ (Mar.png
ADDED
|
Git LFS Details
|
Media/agent2/- #132 - Tutorial Outline.docx
ADDED
|
Binary file (56.1 kB). View file
|
|
|
Media/agent2/1-variable Confidence Interval Full write up examp.docx
ADDED
|
Binary file (6.97 kB). View file
|
|
|
Media/agent2/1-variable Hypothesis test Full write up example.docx
ADDED
|
Binary file (43.7 kB). View file
|
|
|
Media/agent2/10.1 p744 exercises 13,14,15 (this should be a(1).jpeg
ADDED
|
Git LFS Details
|
Media/agent2/10.2 Infinite Series (Mar 26, 2021 at 2_49 PM).png
ADDED
|
Git LFS Details
|
Media/agent2/10.2 The Area Problem_ Read section, then p752(2).jpeg
ADDED
|
Git LFS Details
|
Media/agent2/10.2 The Area Problem_ Read section, then p752.jpeg
ADDED
|
Git LFS Details
|
Media/agent2/10.3 p763 7-29 odds,16,37,42_ (May 31, 2020 at (1).png
ADDED
|
Git LFS Details
|
Media/agent2/2-Prop Hypothesis test Full write up example.docx
ADDED
|
Binary file (44 kB). View file
|
|
|
Media/agent2/2-variable Confidence Interval Full write up examp.docx
ADDED
|
Binary file (7.03 kB). View file
|
|
|
Media/agent2/2-variableHypothesis test Full write up example.docx
ADDED
|
Binary file (44.1 kB). View file
|
|
|
Media/agent2/3D worksheet (sent out before break) (Apr 24, (1).jpeg
ADDED
|
Git LFS Details
|
Media/agent2/3D worksheet (sent out before break) (Apr 24, .jpeg
ADDED
|
|
Git LFS Details
|
Media/agent2/424_ Review Day 2_ Video 10 Significance Test .jpeg
ADDED
|
|
Git LFS Details
|
Media/agent2/4_17_ Chapter 11 Practice Test 3 problems (May .png
ADDED
|
|
Git LFS Details
|
Media/agent2/5.5 Optimization Problems (Oct 30, 2020 at 12_2.png
ADDED
|
Git LFS Details
|