HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Genetic Algorithms Tutorial 04 - Class Scheduling JAVA Application

42,233 views October 31, 2016 46:26

Watch on YouTube
ChannelPrototype Project

Description from the creator

►Substack article @ prototypeproject.substack.com/p/class-schedulin…
►Python version @ youtu.be/8NrNX_jCkjw
►Hill Climbing version @ youtu.be/CYhJhYFN99Y
► get access to members-only video contents + support:
youtube.com/channel/UCUvwlMMaeppKPdtAK8PxO8Q/jo…
► download ai source code @ sites.fastspring.com/prototypeprj/instant/ai
► download crypto source code @ sites.fastspring.com/prototypeprj/instant/crypto

00:28 demo a prebuilt version of the application
01:30 defining conflicts in the context of a "university class scheduling" app.
03:30 elitism in this app.
05:14 go over departments, courses, rooms, instructors, and meeting times data used in this app.
06:34 code the application
06:56 go over this app packages and classes
10:10 code the Course class
11:15 code the Department class
11:49 code the Instructor class
12:17 code the MeetingTime class
12:39 code the Room class
12:59 start coding the Schedule class
13:14 code the Class class
14:36 code the Data class
17:14 finish coding the Schedule class
18:13 initialize schedule
20:10 calculateFitness method in Schedule class
23:50 code the Population class
25:22 sortByFitness method in Population class
25:43 code the GeneticAlgorithm class
26:17 crossoverPopulation performs crossover for all schedules in population
26:38 selectTournamentPopulation does tournament selection in order to select 2 schedules to do crossover on
27:18 mutatePopulation calls mutateSchedule on all schedules in population
27:54 evolve is a public method that when called ends up calling crossoverPopulation than calls mutatePopulation on the returned result and returns the final result
36:53 code the app. Driver class
43:41 test run the finished app.

About this tutorial

Prototype Project published this 46:26 video tutorial on October 31, 2016. It has been watched 42,233 times on YouTube.

Duration
46:26
Published
October 31, 2016
Views
42,233
Likes
282

Tags

Share

This tutorial in other languages