Monday, January 27, 2020

Java Multithreaded Genetic Algorithm In Solving Computer Science Essay

Java Multithreaded Genetic Algorithm In Solving Computer Science Essay Time table problem is a kind of scheduling problems with many variations. It defines a class of hard-to-solve constrained optimization problems of combinatorial nature (Bhaduri, 2009, p.289). Constraints are the rules that control the schedule process and it not necessarily be satisfied but for certain constraints, it may be inviolable for the problem. Based on the constrains, sometime the scheduling problem may also facing the problem that it only be to obtain a feasible solution but all feasible solution have equal cost. Furthermore, the time table problem (TTP) also is an NP-hard problem and by conventional methods, it is very hard to solve (Even cited in Verma, 2012, p.919).The timetable problem can be of few kinds. E.g. for the transportation purpose, educational institutes, or a hospital roster for nurses. This project is considers a time table in educational, especially for the case of a School (Sapru et al, 2010, p.1). In recent years, interest in meta-heuristic approaches such as simulated annealing, tabu search and genetic algorithms (for school timetabling) has increased due to the ability of these approaches to generate solutions to solving TTP. (Schaerf, 1999, pp.87-127 and Burke et al, 2002, pp.266-280). Solving the real world school timetable problem manually often need a lot of time and resources. In order to handle the problem, many researches in this area has been invested over the year, the automated school timetabling is one of the part or idea in this area for those researches. It is a task that can save a lot of man-hours work. However it is difficult tasks faced by educational institutions. For example, it involves the allocation and distribution of resources to different tasks subjected to different constraints (Verma, 2012, p.919). Those are including of teachers, rooms, classes at a fixed number of available time slots and subjects. The constraints in School Time Table problem are: Certain room (computer lab, music room) cannot have more than one class in a given time slot. No class can have more than one subject in a given time slot. The number of classes per week is a fixed number for each subject, and this number must be met by the prepared schedule. Genetic algorithm (GA) have been used for solving timetable problem since 1990(Bhaduri cited in Bhaduri, 2009, p.289). The GA has global optimization strategy which can avoid falling into local optimum and it also is one kind of the iterative adaptive heuristic probabilistic searching algorithm (Yunfeng Dong, 2011, p.3703). besides that , GA also is the widespread algorithm for the timetable problem(TTP).The main reason for widespread of GA uses are GA do not require a continuous data set or objective function; they also require no gradient or other information (Sapru et al., 2010, p.2). In this project, we attempt to compare the results in time table solving based on the GA with java multithreaded and the GA without java multithreaded. An objective of this study is to prove that java multithreaded optimize the GA in solving school time table problem. Literature Review Genetic algorithm (GA) Li et.al. (2010, p.21) using the genetic algorithm to solve the university test timetable problem, from the experiment result show that the genetic algorithm able to get the optimal solution. However, the examination place is not in a big situation, so it only can guarantee obtains the overall situation optimal solution in the two number random situation. Yunfeng Dong et.al. (2011, p.3705) describe a new algorithm for scheduling system, it is genetic search algorithm . Traditional genetic algorithm has shortcomings of early convergence and variation problem . Genetic search algorithm is an algorithm that makes the improvement based on the genetic algorithm merit . It use partially matched crossover to solve the early convergence problem and the Tabu search algorithm concept instead of using mutation operator to solve the variation problem. A test for solving school time tabling between genetic algorithm, simulated annealing and genetic search algorithm, can be found in the paper .From the test, the time complexity of genetic search algorithm is the most optimal, compare to other .However, the test is only set the population size is 50 and genetic generation is 50 .The next experiment in the paper for the genetic search algorithm also can find out that more genetic generation, consuming more time for the genetic search algorithm . Whil e the genetic generation is increasing , the result is not so optimal compare to the performance in test. In Sheung et.al. (1993, p.448) , a comparison between the results produced by the GA-based (Genetic Algorithm) and the SA-based (Simulated Annealing) time table optimizer was found. From the result (figure 5) , find that the SA-based time table optimizer is better than GA-based time table optimizer , that is because the comparison only until generation is 50.But from the figure 6 , can find that the convergence curve of GA looks more stable and smooth for the larger population. Sheung et.al. (1993, p.448)- figure 5 Sheung et.al. (1993, p.448)- figure 6 Project Scope and Objectives In the title of the project, we find that this project is solving the school timetable problem based on the genetic algorithm (GA) with java multithreaded. By using java multithreaded, it will solve the problem of the speed of generate school timetable based on GA. The speed will faster than the GA without using java multithreaded. 3.1 Project Scope The scope of this project is the systems that generating the school timetable by the GA with java multithreaded and the GA without java multithreaded. The following details will describe the functions that both timetabling system will perform. The systems should be able to generate timetable for students and teachers. The systems should be able to let the students and teachers view their timetable online at anytime. The systems should be able to let teachers to check availability of the lab and book the lab online at any time. The systems should be able to let the officer in charged to add, modify, and delete teachers detail at any time. The systems should be able to provide a user friendly interface for users to use it. The system should be able to provide a simple and nice timetable interface for users to view. 3.2 Project Objectives Based on the project scope, the projects objectives are the proposed idea are: Main Objective Enhance the genetic algorithm (GA) in solving the school timetable problem by using multithreaded programming. The system will apply GA concept into the time tabling procedures to get the result and using the multithreaded programming to increase the speed of generate time table schedule. Sub-Objective To optimize the use of time. The time of generate the school timetable will be decrease. To save workload of the officer in changed and teacher. The system will perform time tabling automatically rather than the officer need to manually schedule the timetable. The system able to let teachers to check availability of the class room and book the class room online. 3.3 Conclusion The system able fully utilize processors to using genetic algorithms (GA) generate the time table schedule faster without changing the concept of GA .That is the innovation of this project compare with other. Methods/Technologies Involved 4.1 Methods GENETIC ALGORITHM (GA) Genetic algorithm (GA) is an optimization and search technique based on the principles of genetics and natural selection.GA uses the concept of genetic recombination of parent chromosomes for traits sharing among their offspring, mutation to bring change among the offspring and survival of the fittest for the population to evolve [17,18]. In this project, the system apply GA concept into the time tabling procedures to get the result (time table schedule). MULTITHREADED PROGRAMMING Sometimes a lightweight process refers by a thread; multithreaded programming allows multiple threads to exist within the context of a single process. These threads execute independently but share the same processà ¢Ã¢â€š ¬Ã¢â€ž ¢ resources. So, multithreaded program able to operate faster, if that computer system for the program has multiple CPUs or CPUs with multi cores. Java multithreaded is one of the multithreaded programming. The advantages of java multithreaded are given below: Processors are fully utilized. Threads share the same address space. Context-switching between threads is normally inexpensive. Not have as much OS overhead. In this project, the system using the multithreaded programming to increase the speed of generate time table schedule. 4.2 Technologies Involved Notebook (Window) with multi core: writing Java Language and running the system Java Platform, Enterprise Edition (Java EE): Developing time tabling system 4.3 Project Methodology The development method that will use for this project is incremental development, because the functions will be implementing in order the rank of according to ità ¢Ã¢â€š ¬Ã¢â€ž ¢s important in the project and release the latest version from time-to-time until the final version. C:UsersmirroDownloadsincremental.PNG

Sunday, January 19, 2020

Triangle Fire 1911 Essay -- essays research papers fc

The Triangle Fire of 1911   Ã‚  Ã‚  Ã‚  Ã‚  Near closing time on Saturday afternoon, March 25, 1911, in New York City a fire broke out on the top floors of the Asch Building in the Triangle Shirtwaist Company. One of the worst tragedies in American history it is known as the â€Å"Triangle Shirtwaist Fire†. It was a disaster that took the lives of 146 workers, most of which were women. This tragedy pointed out the negatives of sweatshop conditions of the industrialization era. It emphasized the worst part of its times the low wages, long hours, and unsanitary working conditions were what symbolized what sweatshops were all about. These conditions were appalling, and no person should ever be made to work in these conditions.   Ã‚  Ã‚  Ã‚  Ã‚  Sweatshops were originally set up to produce a large quantity of mostly clothing items, with cheap labor wages for its workers. Sweatshops more often than not were cramped buildings with few windows or fans. The people who worked in these sweat shops rarely received breaks, and would on average 10-12 hours a day, seven days a week. The places were so unsanitary many did not have proper plumbing facilities to accommodate all those who worked there, and no way of cleaning or bandaging a cut or wound if injured on the job. Although these were the common standards of sweatshops the Asch Building, where the Triangle Shirtwaist Factory was located was a very large building, with nine floors. This building was large but cramped due to all the workers, material and machines. Every inch of viable space was used to put either a machine, material or another worker.   Ã‚  Ã‚  Ã‚  Ã‚   Sadie Frowne, a swear shop worker from New York City stated â€Å"The machines go like mad all day because the faster you work the more money you get. Sometimes in my haste I get my finger caught and the needle goes right through it. It goes so quick, though, that it does not hurt much. I bind the finger up with a piece of cotton and go on working†. This was the mind set of most of the workers in the sweatshops. They hated their job and long hours but as long as they worked the money, as little as it may be, still came in.   Ã‚  Ã‚  Ã‚  Ã‚  Most sweat shops were employers of immigrant’s, men children, and women. Women were especially employed at the Triangle shirtwaist factory, because it was easy to persuade wo... ...  In comparison with the Triangle Fire in 1911, the Rhode Island nightclub fire has a few similarities. Just like sweatshops, night clubs are often times over crowded and do not have enough fire exits to satisfy the overcrowding that takes place in nightclubs. Just as a miss thrown match caused the sweatshop fire, a miss thrown match in a night club could cause the same catastrophic event. In theory the number of smokers in an overcrowded night club often times outnumber non smokers, which could very well cause an unwanted fire that leads to a tragedy. Bibliography Famous Trials. The Triangle Shirtwaist Fire Trial 1911. (website).   Ã‚  Ã‚  Ã‚  Ã‚  http://www.law.umkc.edu/faculty/projects/ftrials/triangle/trianglefire.html The Triangle Factory Fire By: Cornell University ILR School (website). http://www.irl.cornell.edu/trianglefire/ U.S. Fire Administration/National Fire Data Center. Nightclub Fires in 2000. (PDF File). http://www.emergency-management.net/pdf/FemaResearchNightclubFires2000.pdf   Ã‚  Ã‚  Ã‚  Ã‚     Ã‚  Ã‚  Ã‚  Ã‚     Ã‚  Ã‚  Ã‚  Ã‚     Ã‚  Ã‚  Ã‚  Ã‚     Ã‚  Ã‚  Ã‚  Ã‚  

Saturday, January 11, 2020

Hamlet Questions Essay

On the discussion board post your answer to the questions: â€Å"What is Hamlet ‘about’?† and â€Å"What are its enduring themes and messages?†. Your response does not have to be governed by the Values and Worldviews (Dialectic) approach taken through this unit. Substantiate your own ideas with evidence from the play. Don’t research. Build on or refute with reason the responses of two others. What is Hamlet about? With knowledge of the book from previous research and actually reading the play itself in my opinion, the play â€Å"Hamlet† is about a troubled man going through very difficult time in his life after his father is murdered by his uncle which is now married to his mother (which would have been his sister in law). Hamlet throughout the play seeks revenge on Claudius for the murder of Hamlet’s father. What are its enduring themes and messages? The main theme for Hamlet in my opinion is revenge and madness. Hamlet seeks revenge on Claudius for the murder of his father, which is Hamlet’s mother’s recently new husband and has not known about the murder of her late husband. Madness is another common theme in the play because Hamlet for some scenes pretends to act mad towards his companions (Act Two, Scene One) or when he is actually angry but talks to himself about his plan to seek revenge (Act Four, Scene Four). The message I got from the play is that family is truly important in life, Hamlet had a close father-son relationship so when he lost his father it was very traumatic for him. It is always very hard when  you lose a loved one in your life but to find out that he was murdered by your uncle? I am not surprised for how Hamlet reacted to everything that happened in his life. That is a lot for one person to handle.

Friday, January 3, 2020

The Story Of An Hour By Kate Chopin - 1421 Words

Essay One â€Å"The Story of an Hour† is arguably known as Kate Chopin’s best short story. Those who have read the story, can agree that Louise Mallard, receives tragic information of her husband, Brently Mallard’s death. Mrs. Mallard then accelerates through a sequence of emotional reactions of â€Å"new spring life† and â€Å"elixir of life† (476-477), but she receives another shock that her husband is actually alive. This shock is so devastating that it is fatal. Chopin’s depiction of open windows and spring setting, can be described as a new type of freedom that Louise Mallard has never explored before. Describing â€Å"new spring life† can acknowledge the existence of freedom. Mrs. Mallard’s freedom is finally embraced and achieved, as her husband death is sanctioned. Once Brently is pronounced dead, Chopin then refers to Mrs. Mallard by her first name, Louise. However, does her new embrace of freedom make Mrs. Mallard a s elfish woman or is she benevolent? Mrs. Mallard is first seen as a woman who is gentle and fragile. She accepts the tragic events of her husbands death. â€Å"She did not hear the story as many women have heard the dame, with a paralyzed inability to accept its significance. She wept at once, with a sudden wild abandonment, in her sisters arms,† (467). Even though the notification of her husband’s death is told by Richard and Josephine, Mrs. Mallard crumbles into her sisters arms. Chopin is implying that this is the first moment when Mrs. Mallard changes her attention to aShow MoreRelatedThe Story Of An Hour By Kate Chopin1241 Words   |  5 Pagesâ€Å"The Story of an Hour† by Kate Chopin is a wonderful short story bursting with many peculiar twists and turns. Written in 1894, the author tells a tale of a woman who learns of her husband’s death, but comes to find pleasure in it. Many of the elements Kate Chopin writes about in this story symbolize somet hing more than just the surface meaning. Through this short story, told in less than one thousand one hundred words, Kate Chopin illustrates a deeper meaning of Mrs. Mallard’s marriage with herRead MoreThe Story Of An Hour By Kate Chopin855 Words   |  4 PagesThe Story of an Hour In the â€Å"Story of an Hour† by Kate Chopin, is about pleasure of freedom and the oppression of marriage. Just like in Kate Chopin’s story, inside most marriages, even the ones that seem to be the happiest, one can be oppressed. Even though, one might seem to be happy deep inside they miss the pleasure of freedom and living life to the fullest. Just like, in this story Mrs. Mallard feels trapped and when she hears about her husband’s death she first feels distraught, but ultimatelyRead MoreThe Story Of An Hour By Kate Chopin1457 Words   |  6 PagesEmotions and Death Everyone who reads a story will interpret things slightly different than the person who reads it before or after him or her. This idea plays out with most every story, book, song, and movie. These interpretations create conflict and allow people to discuss different ideas and opinions. Without this conflict of thought there is no one devoting time to debate the true meaning of a text. Kate Chopin’s â€Å"The Story of an Hour† tells about a woman who is informed of her husbands deathRead MoreThe Story Of An Hour By Kate Chopin987 Words   |  4 PagesIn Kate Chopin’s short story, â€Å"The Story of an Hour† reader’s see a potentially long story put into a few pages filled with rising action, climax and even death. In the beginning of the story, character Louise Mallard, who has a heart condition, is told of the death of her husband by her sister and one of her husband’s friends. Afterwards Mrs. Mallard is filled with emptiness and then joy of freedom. This joy of freedom is actually what consequently leads to her death in the end when she discoversRead MoreThe Story Of An Hour By Kate Chopin1061 Words   |  5 PagesThroughout the short story, â€Å"The Story of an Hour†, readers are introduced to characters whose lives change drastically in the course of this writing. Through Kate Chopin’s story we can identify many different themes and examples of symbolism in her writing. Chopin’s choice of themes in this writing are no surprise due to the time frame of which this story was written. Chopin often wrote stories with of women’s rights, and is noted as one of America’s first open feminists. As this story of an ill, helplessRead MoreThe Story Of An Hour By Kate Chopin972 Words   |  4 Pagesâ€Å"The Story of an Hour† by Kate Chopin expresses Ms. Mallard’s feelings towards her husband’s death in an appalling train accident. Due to her bad heart, her sister Josep hine had to be the bearer of bad news and approach his death gently to her. According to the quote, â€Å" But now there was a dull stare in her eyes, whose gaze was fixed away off yonder on one of those patches of blue sky. It was not a glance of reflection, but rather indicated a suspension of intelligent thought†, it lets us know thatRead MoreThe Story Of An Hour By Kate Chopin998 Words   |  4 Pagesâ€Å"The story of an hour† by Kate Chopin was a story that was ironical yet profoundly deep. As a student I have been asked to read â€Å"a story of an hour† many times, and every time I’m surprised by how I enjoy it. People can read thousands of stories in their life times and only a handful will every stand out to them, stories that can draw out an emotion or spark a thought are the ones that will standout more. For me and â€Å"a story of an hour† the thought of freedom is what draws me the most as a teenageRead MoreThe Story Of An Hour By Kat e Chopin1542 Words   |  7 PagesIn the short story, â€Å"Story of an Hour†, Kate Chopin writes about a woman with heart trouble, Mrs. Mallard, who, in finding out about the death of her husband, Mr. Mallard, experiences some initial feelings of sadness which quickly transition into the exhilarating discovery of the idea of a newfound freedom lying in front of her. When it is later revealed that her husband is not actually dead, she realizes she will not get to taste that freedom. The devastation kills her. What Mrs. Mallard goes throughRead MoreThe Story of an Hour by Kate Chopin596 Words   |  2 PagesIn â€Å"The Story of an Hour,† Kate Chopin focuses on the idea of freedom throughout the story. Mrs. Mallard is a lonely wife who suffers from heart trouble. She is told by her sister Josephine and her husband’s friend Richards that her husband has passed away in a train accident. She locks herself in a room expecting to be devastated, but instead feels freedom. Later, she exits her room and her husband walks through the door, causing her to die of a heart attack. Chopin uses this story to demonstrateRead MoreThe Story Of An Hour By Kate Chopin886 Words   |  4 Pages In Kate Chopin â€Å"The Story of an Hour†, the reader is presented with the theme of prohibited independence. In Kate Chopin â€Å"The Storm†, the scenery in this story builds the perfect atmosphere for an adulterous affair. The importance of these stories is to understand the era they occurred. Kate Chopin wrote stories with exceptional openness about sexual desires. In â€Å"The Storm†, a short story written by Kate Chopin in a time when women were expected to act a certain way and sexual cravings was considered