I'm beginner in java ; I want to implement the ACO algorithme for solving a problem of shortest path (minimize the time of target) in java and I don't know where I should start.
Please I need a help if you have.
Thank you for your answer;
yes,I read a lot of toturials for java and I win to implement an interface for writing the informations of my subject(departure and arrival hours of vehicle and their price ; target time...) in a file .txt
and reading them .
now I need to know how can adapt the ant colony system for this problem? what is the steps?
thank you in advance.
I'm in last step"code and test" and I have a problem in this step exactly.
I implement the graph (nodes "cities"; arcs"line of the mode of transport" and the modes of transport )
now I search to know how can implement the algorithm of ant colony system for calculate the minimum times for a travel from a node source to a node destiation ?
Thank you for your help.
The field I am wanting to pull from is labeled "Name". Below was one of my attempts, all of which have not worked.
var Name = this.getField("Name").value;
cURL: "mailto:email@example.com?subject=TSC Form (Name)&body= ) ",
Can some one point me in the right direction or help me with where I went wrong in the script? I am new to this, and glad I was able to execute the first script successfully but I feel I am in over my head with the customization.
UPDATE data SET
full_name = "SARA", //Type of String
reg_num = "dawdawdaw", //String
note = "note", //String
price = 15, //int
date = 2017-05-17, //java.sql.Date
totalPay = 16, //int
expiration_date = 2017-06-16, //java.sql.Date
WHERE id = 1; //intif I run this SQL statement it throws the following syntax error:
WHERE[*] id = 1"; expected "identifier"; SQL statement:
What did I do wrong?
Dear Friends, When build MyFristApplicationAndroid, It appear error message below:
Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher
I choose struct project and repair.
I delete C:\Program Files\Android\Android Studio\jre
And I update C:\Program Files\Java\jdk1.8.0_131
And I have had the second error below:
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugUnitTestApkCopy'.
> Could not resolve junit:junit:4.12.
> Could not resolve junit:junit:4.12.
> Could not get resource 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
> Could not GET 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
> Connect to jcenter.bintray.com:443 [jcenter.bintray.com/22.214.171.124] failed: Connection timed out: connect
I HOPE YOU HELP ME REPAIR 2 ERRORS ABOVE. THANK YOU SO MUCH.
A small Off Broadway Theater is opening in Manhattan. The theater consists of an orchestra section and a balcony. The manager purchased a computer for its automated ticket system; and you’ve been awarded the contract to program the test system that will assign seats for the Opening Night of “String Man”.
Your program should display the following choices: Please enter 1 for orchestra and 2 for balcony. If the person types 1, your program will assign a seat in the orchestra section (rows 1-10, 20 seats per row). If the person types 2, your program should assign a seat in the balcony section (rows 11-20, 15 seats per row).
Use a two-dimensional irregular array of primitive type boolean to represent the seating chart of the theater. Initialize all the elements of the array to false to indicate that all seats are empty. As each seat is assigned, set the corresponding elements of the array to true to indicate that the seat is no longer available.
Your program should never assign a seat that has already been assigned. If either the orchestra section or the balcony becomes full, your program should display a message indicating that section is full; and ask the user if they would like a seat in the remaining section. If the user responds, “no”, your program should display the string, “Next performance is in one week”. If both sections are full, your program should display the string, “Sorry, Opening Night is Sold Out”.
When a seat is assigned, your program should print out a ticket indicating the row and seat assignment.
Last Visit: 31-Dec-99 18:00 Last Update: 21-Sep-23 0:28