https://github.com/morri3/pdptw
Coursework of COMP4134 24-25
https://github.com/morri3/pdptw
greedy-algorithm grouping-genetic-algorithm java np-hard pdptw
Last synced: 3 months ago
JSON representation
Coursework of COMP4134 24-25
- Host: GitHub
- URL: https://github.com/morri3/pdptw
- Owner: Morri3
- Created: 2024-12-01T16:32:36.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-03-10T11:47:17.000Z (3 months ago)
- Last Synced: 2025-03-10T12:34:05.634Z (3 months ago)
- Topics: greedy-algorithm, grouping-genetic-algorithm, java, np-hard, pdptw
- Language: Java
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solving PDPTW problem based on Greedy Algorithm
This is the coursework of COMP4134 Advanced Topics in Machine Learning (2024-2025).---
## How to use codes?
The final code file called `AADS.java` is a single Java source code file containing all code for this coursework. The file doesn't require any other files outside of the standard Java packages, which are always available. The file must compile and execute without warnings or errors using the command.
1) Compile:
```
javac -encoding UTF-8 -sourcepath . AADS.java
```
2) Execute:
```
java -Dfile.encoding=UTF-8 -XX:+UseSerialGC -Xss64m -Xms1920m -Xmx1920m AADS < Input.json > Output.txt
```**Tips**:
1) In the command of execution, the `Input.json` represents the input JSON file and the `Output.txt` represents the output file.
2) The input JSON file should be located in the same directory as the `AADS.java` file.
3) The program sends its output to standard output (by executing the above command, it will produce Output.txt in the same directory as `AADS.java` and `Input.json`, so no FileWriter is required)---