Complete Project Report
Complete Project Report
Submitted by
Simran Kumari 12012684
The system's overall performance is greatly impacted by how various processes are
scheduled. Any application that needs to attain high performance finds it challenging to
schedule efficiently for nonconvergent processes. An analysis of n-layer algorithms based
on the Ant Colony Optimization (ACO) algorithm is presented in this article. ACO is
used in this study's model to guarantee that the procedure goes according to schedule.
ACO is a helpful meta-heuristic optimization method for determining the best answers to
various multivariate issues. The results also provide a tabular comparison of the average
waiting time and the average turnaround time in the system employing the ACO process,
with reference to scheduling algorithms (first come, first served and first come, first
serve).
Setting tasks to non-shared processes makes it hard to get excellent performance for any
application. An analysis of n-layer algorithms based on the Ant Colony Optimization
(ACO) algorithm is presented in this article. ACO is used in this study's model to make
sure the procedure goes according to schedule. Discrete and multivariate problems can
have optimal solutions found using the meta-heuristic optimization technique known as
ACO. The results also show how to use the first come, first serve and first come, first
serve scheduling algorithms to compare the average waiting time and the average time to
paper when utilizing ACO technology.
6
Index
3. Existing Algorithms
3.1 First Come First Serve (FCFS) Scheduling Algorithms
3.1.1 Introduction to FCFS
3.1.2 Working Principle
3.1.3 Limitations
3.2 FCFS with ACO
3.2.1 Mechanisms
3.3 Benefits
3.4 Limitations
4. Priority Scheduling
4.1 Introduction to Priority Scheduling
4.1.1 Working Principle
4.1.2 Benefits
4.2 Priority Scheduling with ACO
4.2.1 Mechanism
4.2.2 Benefits
4.2.3 Limitations
5. Comparison between First Come First Serve (FCFS) with ACO and Priority Scheduling with
ACO
5.1 Resource Utilization
5.2 Deadline Compliance
5.3 Responsiveness
5.4 Adaptability
5.5 Fairness
5.6 Algorithmic Complexity
5.7 Overall Performance
7. References
7
Introduction
Ant Colony Optimization (ACO) is a fascinating metaheuristic inspired by the foraging behavior of
ants. It has been successfully applied to a variety of combinatorial optimization problems, including
scheduling. Scheduling is a critical task in various domains such as manufacturing, transportation,
and project management, where the goal is to allocate resources efficiently over time. ACO
algorithms, which mimic the pheromone-based communication among ants to find optimal paths,
have shown promise in tackling scheduling problems.
This report delves into the analysis of scheduling algorithms based on Ant Colony Optimization. The
objective is to evaluate the effectiveness and efficiency of different ACO strategies in solving
scheduling problems, particularly focusing on tasks like job-shop scheduling, project scheduling, and
flow-shop scheduling.
The report is structured as follows: first, we provide an overview of scheduling problems and the
challenges they pose. Next, we introduce the fundamental principles of Ant Colony Optimization and
how they can be adapted to solve scheduling problems. Subsequently, we review several ACO-based
scheduling algorithms and discuss their strengths and weaknesses based on empirical studies and
theoretical analysis. Furthermore, we present comparative analyses of these algorithms, highlighting
their performance metrics, computational complexities, and applicability to real-world scenarios.
Scheduling algorithms play a crucial role in optimizing the allocation of resources and managing
tasks efficiently in various domains such as computing systems, manufacturing processes,
transportation networks, and project management. The objective of scheduling is to assign resources
to tasks in a way that minimizes the completion time, maximizes throughput, reduces resource
contention, and meets various constraints. Traditional scheduling algorithms, such as First Come
First Serve (FCFS), Shortest Job Next (SJN), Round Robin (RR), and Priority Scheduling, have been
widely used to address these optimization problems. However, these algorithms may not always
yield optimal solutions, especially in complex and dynamic environments where the number of tasks,
resource availability, and task dependencies can vary unpredictably.
To overcome the limitations of traditional scheduling algorithms, researchers have turned to nature-
inspired metaheuristic algorithms that mimic the behavior of natural systems to find near-optimal
solutions to combinatorial optimization problems. One such metaheuristic is Ant Colony
Optimization (ACO), which draws inspiration from the foraging behavior of ants to solve
optimization problems. Ants, through simple local interactions and indirect communication via
pheromone trails, exhibit remarkable capabilities in collectively finding the shortest path between
their nest and food sources. ACO leverages this phenomenon by representing candidate solutions to
an optimization problem as paths in a graph, with ants constructing and exploring these paths
probabilistically. As ants traverse paths, they deposit pheromone trails, with the intensity of the
pheromone trails proportional to the quality of the solution found. Over time, through the iterative
exploration of the solution space, the pheromone trails converge towards optimal solutions,
effectively guiding subsequent generations of ants to better solutions.
The application of ACO is not limited to a specific domain but extends to a wide range of
combinatorial optimization problems, including the scheduling of tasks in computing systems. In the
context of task scheduling, ACO algorithms aim to find an optimal assignment of tasks to resources
while considering constraints such as resource availability, task dependencies, and deadlines. Unlike
traditional scheduling algorithms that rely on deterministic rules, ACO-based scheduling algorithms
adopt a probabilistic approach, allowing for adaptability to dynamic environments and the
exploration of diverse solution spaces.
In this paper, we provide an in-depth exploration of scheduling algorithms with a focus on Ant
Colony Optimization. We begin by discussing the fundamental concepts of scheduling and the
challenges posed by traditional scheduling algorithms. We then introduce the principles of Ant
Colony Optimization and its application to task scheduling problems. We delve into the components
of ACO algorithms, including pheromone trails, heuristic information, and solution construction
8
mechanisms. Furthermore, we examine the convergence behavior of ACO algorithms and strategies
for enhancing their performance, such as local search and parameter tuning. Furthermore, ACO
offers several advantages over traditional optimization techniques and other metaheuristic
algorithms. Unlike deterministic algorithms that may get stuck in local optima, ACO maintains
diversity in the population of solutions through probabilistic solution construction mechanisms and
pheromone trail updates, enabling it to escape from suboptimal solutions and explore new regions of
the solution space. Moreover, ACO algorithms are inherently parallelizable, allowing for efficient
utilization of computational resources in distributed and parallel computing environments. As
computing systems continue to evolve, with the emergence of new technologies such as cloud
computing, edge computing, and the Internet of Things (IoT), the demand for efficient and adaptive
optimization techniques becomes increasingly critical. ACO, with its ability to adapt to dynamic
environments, handle uncertainty, and find robust solutions, holds great promise for addressing the
optimization challenges in these emerging computing paradigms.
Through a review of relevant literature and case studies, we illustrate the effectiveness of ACO in
addressing scheduling problems in various computing environments, including multiprocessor
systems, grid computing, cloud computing, and task parallelism. We discuss the strengths and
limitations of ACO-based scheduling algorithms and compare them with traditional approaches and
other metaheuristic algorithms. Additionally, we highlight ongoing research directions and prospects
for the application of ACO in scheduling and optimization.
Overall, this paper aims to provide a comprehensive understanding of scheduling algorithms, with a
particular focus on Ant Colony Optimization, and to demonstrate its potential as a powerful tool for
addressing complex scheduling problems in computing systems and beyond. By harnessing the
principles of swarm intelligence and decentralized decision-making, ACO offers a promising
approach to achieving efficient and robust solutions to optimization problems in diverse domains.
The significance of scheduling algorithms in the context of ACO can be outlined as follows:
1. Resource Allocation: Scheduling algorithms in ACO are instrumental in determining the
optimal allocation of computing resources, such as CPU time, memory, and network
9
bandwidth, to various tasks or processes. By leveraging pheromone trails and heuristic
information, these algorithms facilitate intelligent resource allocation strategies that minimize
resource contention and maximize utilization efficiency. Efficient resource utilization not
only enhances system performance but also helps in reducing operational costs by
minimizing resource wastage.
2. Pheromone Update Mechanism: ACO relies heavily on the concept of pheromone
trails, wherein ants deposit and follow trails to discover better solutions iteratively.
Scheduling algorithms are responsible for managing the update process of these pheromone
trails based on the quality of solutions found by ants. Through dynamic pheromone trail
updates, scheduling algorithms reinforce paths corresponding to high-quality solutions while
phasing out less promising paths. This adaptive mechanism ensures that the exploration of the
solution space remains focused on promising regions, thereby facilitating efficient
convergence toward optimal or near-optimal solutions.
3. Task Prioritization: In ACO-based scheduling, tasks often have varying priorities based
on factors such as deadlines, resource requirements, and criticality. Scheduling algorithms
employ sophisticated prioritization strategies to ensure that high-priority tasks are allocated
resources promptly, thus meeting deadlines and fulfilling critical system objectives.
Additionally, these algorithms facilitate effective deadline management by dynamically
adjusting task schedules in response to changing priorities and constraints, thereby optimizing
overall system performance and user satisfaction.
4. Dynamic Adaptation: A key challenge in scheduling tasks within computing systems is
the dynamic nature of system conditions and workload dynamics. ACO scheduling
algorithms must be capable of dynamically adapting to these changes to maintain optimal
performance. By continuously monitoring system parameters, such as resource availability,
workload fluctuations, and task characteristics, scheduling algorithms adjust the exploration-
exploitation balance to efficiently explore solution spaces while exploiting promising regions.
This adaptive behaviour ensures robustness and resilience in the face of evolving system
conditions, thereby enhancing the scalability and effectiveness of ACO-based scheduling
approaches.
5. Optimization Criteria: Scheduling algorithms in ACO are tailored to optimize specific
criteria and performance metrics, such as make span (total time to complete all tasks),
resource utilization, system throughput, and energy efficiency. These algorithms employ
advanced optimization techniques, such as multi-objective optimization and constraint
satisfaction, to find schedules that strike a balance between competing objectives while
adhering to system constraints. By holistically optimizing performance metrics, scheduling
algorithms enable ACO-based approaches to deliver superior solutions that meet diverse
system requirements and user preferences.
Ant Colony Optimization (ACO) is a metaheuristic inspired by the foraging behavior of ants. This
innovative algorithm mimics the ability of ants to find the shortest path between their nest and a food
source by depositing and following pheromone trails. Introduced by Marco Dorigo in the early
1990s, ACO has since become a widely used optimization technique in solving combinatorial
optimization problems. In nature, ants communicate through pheromones, chemical substances that
10
they deposit on the ground as they move. When an ant discovers a food source, it leaves a trail of
pheromones on its way back to the nest. Other ants can detect these pheromones and tend to follow
paths with stronger pheromone concentrations. Over time, shorter paths become favoured as the
pheromone evaporation rate ensures that longer or less efficient paths gradually lose their
attractiveness.
ACO translates this principle into a computational approach for optimization problems. It maintains
a population of artificial ants that traverse a problem-specific graph, representing potential solutions.
As these ants move, they update the pheromone levels on the edges of the graph based on the quality
of the solutions they construct. Good solutions are associated with stronger pheromone trails, guiding
subsequent ants towards promising regions of the solution space.
The key components of an ACO algorithm include the construction of solutions using probabilistic
rules based on pheromone levels and heuristic information, pheromone updating mechanisms that
mimic the evaporation and reinforcement processes seen in nature, and a termination criterion to
determine when to stop the search. ACO has been successfully applied to a wide range of
optimization problems, including the traveling salesman problem, vehicle routing, job scheduling,
and more.
This paper aims to delve deeper into the workings of ACO, exploring its underlying principles,
algorithmic components, variants, applications, and performance characteristics. By understanding
the mechanisms behind ACO, researchers and practitioners can leverage its strengths to address
complex optimization challenges effectively.
Ants travel from the nest (N) to the food (F), as Figure 2 makes evident. Ants see through more
pheromones to find the shortest path because they are blind. Ants travel at random and leave
pheromone trails behind. The likelihood of the trail being followed rises with more pheromones in
the area
11
FIGURE 2. Ants navigation from nest (N) to food source (F) and vice-versa.
This work aims to define a novel class of general-purpose metaheuristic algorithms that apply to a
variety of discrete-combinatorial optimization problems. These are the following desirable features
of this newly defined metaheuristic algorithm:
• Versatile: It can be used with comparable versions to solve the same issue. For instance, the simple
traveling salesperson problem can be directly extended to the asymmetric traveling salesperson
problem.
• Robust: The technique requires minimal changes to be applied to various challenges in finding the
best combinations, including scheduling and assigning resources.
• Population-based approach: Favorable reviews can give a newly launched search engine a
significant boost. It allows us to establish credibility and attract users. The fact that the ACO can be
outperformed by more specialized algorithms for many applications which counterbalance these
previously highlighted favorable qualities.
Ant Colony Optimization (ACO) is a metaheuristic optimization algorithm inspired by the foraging
behavior of ants. It relies on the collective behavior of simple agents, mimicking the actions of ants
in finding optimal paths to food sources. The key components of ACO include ants, pheromone
trails, and heuristic information.
1. Initialization:
• ACO begins by initializing a population of artificial ants, each representing a potential
solution to the optimization problem.
• Initially, ants are distributed randomly across the solution space, ready to explore and
construct solutions.
2. Probabilistic Solution Construction:
• Ants construct solutions to the optimization problem through probabilistic decision-making.
• At each step of the solution construction process, an ant selects the next action (e.g., move to
a neighbouring node in a graph) based on a combination of pheromone trails and heuristic
information.
• Pheromone trails represent the collective knowledge of the ant colony, indicating the quality
of solutions found by previous ants.
12
• Heuristic information guides ants towards promising regions of the solution space based on
problem-specific knowledge.
3. Pheromone Update:
• After completing their tours or constructing complete solutions, ants update the pheromone
trails to reflect the quality of solutions found.
• Better solutions receive higher amounts of pheromone, strengthening the corresponding paths
in the solution space.
• Weaker solutions receive less or no pheromone, discouraging ants from exploring similar
paths in subsequent iterations.
4. Exploration-Exploitation Trade-off:
• ACO maintains a delicate balance between exploration (searching for new solutions) and
exploitation (exploiting known good solutions).
• Initially, ants explore the solution space widely, focusing on discovering diverse solutions to
the optimization problem.
• As the algorithm progresses, exploitation intensifies as ants converge towards promising
regions of the solution space, guided by the accumulated pheromone trails and heuristic
information.
5. Local and Global Pheromone Update:
• ACO typically employs both local and global pheromone update mechanisms.
• Local updates occur on individual edges or components of the solution graph, reflecting the
quality of solutions found by individual ants.
• Global updates occur after all ants complete their tours or iterations, reflecting the overall
quality of solutions found by the entire ant colony.
• Global updates ensure collective learning and adaptation, allowing the ant colony to converge
towards high-quality solutions over time.
6. Iteration and Termination:
• The process of exploration, solution construction, and pheromone update iterates for a
predefined number of iterations or until a termination criterion is met (e.g., convergence).
• With each iteration, the ant colony collectively improves its solutions through reinforcement
learning, gradually converging towards optimal or near-optimal solutions to the optimization
problem.
In summary, Ant Colony Optimization (ACO) operates based on the principles of probabilistic
solution construction, pheromone-based communication, and exploration-exploitation trade-off. By
simulating the collective intelligence of ants, ACO efficiently explores solution spaces and finds
high-quality solutions to complex combinatorial optimization problems.
Existing Algorithms
Experts have proposed several scheduling algorithms, including:
a) SJF, or Shortest Job First: The system will select the process with the least burst time to run first
according to this scheduling strategy. That's the reason it's called the Shortest Job First (SJF). This
algorithm's drawback is that there is a chance of starving and that the lengthy process will never be
completed because the system still has lesser jobs to complete. If shorter jobs continue to come in,
hunger will happen. The SJF algorithm might be the best one. Because the short process is completed
before the long process, the waiting time for the short process is less than that of the long process.
which, in comparison to the alternative scheduling, ultimately results in the least average waiting
time
13
b) First Come First Serve (FCFS). The first process to arrive will be carried out first. Occasionally,
this method is referred to as First in First Out (FIFO). The most basic scheduling algorithm is this
one. In contrast, the ready queue processes will use the CPU in the order that they arrive there. The
process that joins the ready queue first will use the CPU first, and the processes that arrive later will
use the CPU in the order of arrival. Non-preemptive scheduling is used in this approach. The process
will occupy the CPU until it is finished once it has been assigned to it. FIFO lists are used in this
approach to implement the ready queue. The recently arrived processes are added to the back end,
and one process is given the CPU.
c) Round Robin (RR). Round robin algorithm is a real-time scheduling algorithm in operating
system. The RR CPU scheduling algorithm is cited as standard RR and it is a preemptive type that
allocates a slice of time named TQ which stands for time quantum for every process in ready queue.
Whenever TQ completes the current process is preempted and put in the rear of ready queue. RR is
usually applied in real-time and time-sharing operating system because it provides every process an
average share of time to utilize the CPU and gives a small responds time. Moreover, the standard
RR algorithm has many weaknesses such as small throughput and big turnaround time as well as the
bit waiting time and also huge context switches number [3]. Dynamic time slice is one solution to
find the effective algorithm running in the system. The intelligent time slice (quantum) for round
robin architecture for real time operating systems is a modified version of simple round robin
scheduling.
Select the process(Pi)
Using the specified parameters and scheduling requirements, the aforementioned algorithm describes
the entire ant's trail process. The following explanation elaborates on these steps in more detail:
4.Priority Scheduling. The essential concept here is that of , to assign each process. Priority. A
number or other relevant quantity to each process. Based on the priority. SJF is one example. SJF is
to give highest priority to the process whose execution time is the workload. This is the same idea as
priority scheduling. The longer the next CPU burst, the lower the priority. The longer the CPU burst,
the higher the priority. It may be defined either and externally. An internally defined priority is some
measurable allocation the externally defined priority between 0 and 18. Priority some qualities meet.
priority. The priority scheduling algorithm can be applied to schedule priorities a process pro based
on its Priority. Another method of providing a priority to the running status is by pre-emption.
14
First Come First Serve (FCFS) Scheduling Algorithms
Introduction to FCFS: First Come First Serve (FCFS) is one of the simplest scheduling
algorithms used in operating systems and task scheduling. As the name suggests, tasks are executed
in the order they arrive, with the first task to arrive being the first one to be executed. FCFS is easy to
implement and understand but may not always result in optimal performance, especially in scenarios
with varying task execution times.
1. Task Arrival:
• Tasks or processes arrive in the system and are placed in a queue in the order of their
arrival.
2. Task Execution:
• The CPU executes tasks from the front of the queue, i.e., the task that arrived first is
executed first.
• Once a task is completed or blocked (e.g., waiting for I/O), the next task in the queue
is selected for execution.
3. Completion:
• Tasks continue to be executed in the order they arrived until the queue is empty or the
system terminates.
Limitations of FCFS: While FCFS is easy to implement and ensures fairness in task execution,
it suffers from several limitations:
1. Convoy Effect:
• Long-running tasks may cause shorter tasks to wait for an extended period, leading to
poor overall performance.
• This phenomenon is known as the convoy effect, where short tasks get stuck behind
long tasks, increasing their response and turnaround times.
2. Inefficiency with Varying Task Execution Times:
• FCFS may result in inefficiencies when tasks have varying execution times.
• Short tasks may get delayed behind long tasks, leading to suboptimal resource
utilization and increased waiting times.
Integration of ACO with FCFS: Integrating Ant Colony Optimization (ACO) with First
Come First Serve (FCFS) scheduling aims to address the limitations of traditional FCFS by
introducing adaptive behavior and optimization capabilities inspired by the foraging behavior of ants.
Mechanisms of FCFS with ACO: The integration of ACO with FCFS introduces several
mechanisms to enhance scheduling efficiency:
1. Pheromone Trails:
• In FCFS with ACO, each task in the queue corresponds to a node in the solution
space.
• Ants traverse the nodes (tasks) in the queue, depositing pheromone trails on the edges
(task transitions) based on task execution times and priorities.
15
2. Task Selection:
• Ants probabilistically select tasks from the queue based on pheromone trails and
heuristic information.
• Tasks with higher pheromone concentrations (indicating shorter execution times or
higher priorities) are more likely to be selected for execution.
3. Pheromone Update:
• After completing their tours (selecting tasks for execution), ants update the
pheromone trails based on the quality of solutions found.
• Shorter task execution times or higher task priorities lead to stronger pheromone
reinforcement, guiding subsequent ants towards optimal task sequences.
4. Adaptive Exploration:
• FCFS with ACO dynamically adjusts the exploration-exploitation balance based on
system conditions and task characteristics.
• Initially, ants explore the task queue widely, discovering diverse task sequences.
• As the algorithm progresses, exploitation intensifies as ants converge towards optimal
task sequences guided by accumulated pheromone trails.
Benefits of FCFS with ACO: Integrating ACO with FCFS offers several advantages over
traditional FCFS:
16
potentially making it more challenging to analyze and debug compared to traditional
FCFS.
• Understanding the interactions between ACO mechanisms and FCFS scheduling
policies may require a deeper understanding of both algorithms.
5. Optimization Trade-offs:
• While ACO aims to optimize task sequences based on pheromone trails and heuristic
information, there may be trade-offs between different performance metrics such as
response time, throughput, and fairness.
• Optimizing one aspect of scheduling performance may come at the expense of other
metrics, requiring careful consideration and trade-off analysis.
6. Resource Utilization Considerations:
• FCFS with ACO may not always prioritize resource utilization efficiency, especially
in scenarios with heterogeneous task characteristics or resource constraints.
• Optimizing task sequences based solely on execution times and priorities may
overlook resource contention issues and lead to suboptimal resource utilization.
In summary, while FCFS with ACO offers potential improvements over traditional FCFS scheduling
by introducing adaptive behaviour and optimization capabilities, it also entails certain limitations and
challenges. Careful consideration of these limitations is essential when designing and implementing
ACO-based scheduling algorithms to ensure their effectiveness and efficiency in real-world
scenarios.
17
temporarily raised to the ceiling level, ensuring that no other task with a lower priority
can pre-empt it.
4. Completion:
• Task execution continues until the task queue is empty or the system terminates. The
priority-based scheduling ensures that critical tasks are handled promptly,
contributing to the overall efficiency and reliability of the system.
Mechanisms of Priority Scheduling with ACO: The integration of ACO with Priority
Scheduling introduces several mechanisms to enhance scheduling efficiency:
18
times or higher task criticality, leading to better task scheduling decisions.
3. Adaptive Priority Adjustment:
• Priority scheduling with ACO dynamically adjusts task priorities based on system
conditions, workload characteristics, and task requirements.
• ACO maintains an exploration-exploitation balance, allowing for adaptive priority
adjustments to optimize task scheduling performance.
1. Algorithmic Complexity:
• Integrating ACO with Priority Scheduling may introduce slightly increased
algorithmic complexity compared to traditional Priority Scheduling.
• However, the computational overhead is negligible and does not significantly impact
the overall efficiency of the scheduling algorithm.
2. Tuning Parameters:
• ACO-based Priority Scheduling may require fine-tuning of parameters such as
pheromone evaporation rates and heuristic information weights.
• While parameter tuning adds a minor overhead, modern optimization techniques can
automate this process, mitigating its impact.
These limitations are minor and easily manageable, especially considering the significant benefits
that Priority Scheduling with ACO offers. The enhanced scheduling efficiency, improved deadline
compliance, and adaptive behavior provided by this approach far outweigh any negligible
drawbacks, making it a compelling choice for various scheduling tasks in diverse domains.
19
Comparison between First Come First Serve (FCFS) with ACO and
Priority Scheduling with ACO
Ant Colony Optimization (ACO) enhances traditional scheduling algorithms by introducing adaptive
behaviour, optimization capabilities, and an exploration-exploitation balance inspired by the foraging
behaviour of ants. When integrated with scheduling algorithms such as First Come First Serve
(FCFS) and Priority Scheduling, ACO optimizes task sequences or priorities, improving scheduling
efficiency and system performance. In this comparison, we examine the integration of ACO with
FCFS and Priority Scheduling, emphasizing the benefits and drawbacks of each approach.
First Come First Serve (FCFS) with ACO: FCFS with ACO aims to optimize task
sequences based on exploration of the solution space and evaluation of task characteristics. Ants
probabilistically select tasks from the queue, depositing pheromone trails on task transitions.
However, FCFS inherently suffers from the convoy effect, where long-running tasks delay shorter
tasks, leading to poor overall performance. While ACO mitigates this effect to some extent, it may
not eliminate it, especially in scenarios with highly variable task execution times.
Priority Scheduling with ACO: Priority Scheduling with ACO optimizes task priorities based
on exploration of the solution space and evaluation of task characteristics. Ants probabilistically
assign priorities to tasks, depositing pheromone trails on priority levels. This approach ensures that
critical tasks are executed promptly, improving deadline compliance and system responsiveness.
Additionally, ACO adapts task priorities dynamically based on changing system conditions,
workload characteristics, and task requirements, further enhancing scheduling efficiency.
When comparing First Come First Serve (FCFS) with ACO and Priority Scheduling with ACO,
several parameters can be considered to assess their performance and effectiveness. Here are some
key parameters for comparison:
20
iteratively construct solutions by making probabilistic decisions guided by pheromone
trails and heuristic information. Pheromone trails signify the attractiveness of
particular scheduling decisions, while heuristics aid ants in navigating the solution
space efficiently. In the context of scheduling, ACO leverages these principles to
allocate tasks to resources in a manner that optimizes resource utilization.
21
Dynamic Resource Management in ACO
ACO excels in dynamic environments where task requirements and resource
availability fluctuate over time. Through feedback mechanisms and reinforcement
learning, ACO adapts resource utilization strategies to accommodate dynamic
scheduling requirements. By dynamically adjusting resource allocations in response to
changing conditions, ACO ensures efficient resource utilization while maintaining
scheduling performance in dynamic environments.
Deadline Compliance:
Deadline compliance is a critical performance metric in scheduling algorithms, reflecting the ability
of a system to meet task deadlines consistently. In the context of Ant Colony Optimization (ACO)-
based scheduling, deadline compliance encompasses the timely execution of tasks within their
specified deadlines while optimizing resource utilization and other scheduling objectives.
Understanding how ACO approaches deadline compliance involves exploring its mechanisms for
task scheduling, resource allocation, adaptability, and optimization strategies tailored towards
meeting deadlines effectively.
22
Task Scheduling and Deadline Compliance
In ACO-based scheduling, task scheduling is guided by the overarching objective of meeting task
deadlines while optimizing resource utilization. Artificial ants construct schedules iteratively,
making decisions based on pheromone trails and heuristic information. The scheduling decisions aim
to allocate tasks to resources in a manner that minimizes the likelihood of deadline violations while
balancing resource usage.
23
Conclusion: Enhancing Deadline Compliance with ACO-Based Scheduling
Deadline compliance is a critical performance metric in scheduling algorithms, reflecting the ability
of a system to meet task deadlines consistently. In the context of Ant Colony Optimization (ACO)-
based scheduling, meeting deadlines involves efficient task scheduling, resource allocation,
adaptability to dynamic conditions, and optimization strategies tailored towards deadline compliance.
By leveraging decentralized decision-making, adaptive exploration, and dynamic adaptation
mechanisms, ACO optimizes deadline compliance while addressing the complexities of scheduling
problems. Understanding and optimizing deadline compliance in ACO is essential for enhancing the
performance and reliability of scheduling systems across various domains and applications. Effective
deadline compliance ensures timely task execution, contributing to overall operational efficiency and
customer satisfaction.
Responsiveness:
Responsiveness is a crucial parameter in scheduling algorithms, reflecting the system's ability to
promptly respond to incoming tasks or changes in the scheduling environment. In the context of Ant
Colony Optimization (ACO)-based scheduling, responsiveness encompasses the agility and
efficiency with which the system adapts to dynamic conditions, prioritizes urgent tasks, and ensures
timely execution. Understanding how ACO approaches responsiveness involves exploring its
mechanisms for task allocation, resource management, adaptability, and optimization strategies
tailored towards enhancing responsiveness.
24
responsiveness in modern computing environments. By allowing multiple ants to explore different
solution paths simultaneously, ACO accelerates the search for schedules that prioritize urgent tasks
and ensure timely execution. This concurrent exploration enables ACO to respond promptly to
changes in the scheduling environment and maintain high levels of responsiveness.
Adaptability:
Adaptability is a crucial parameter in scheduling algorithms, representing the system's ability to
respond effectively to changes in the environment, workload, or task requirements. In the context of
Ant Colony Optimization (ACO)-based scheduling, adaptability encompasses the system's agility,
flexibility, and resilience in adjusting scheduling decisions to accommodate dynamic conditions.
Understanding how ACO approaches adaptability involves exploring its mechanisms for decision-
making, pheromone updating, and resource allocation strategies tailored towards enhancing
adaptability.
25
Pheromone Updating Mechanisms
Pheromone trails play a crucial role in guiding ant behavior and decision-making in ACO-based
scheduling. As ants construct schedules and execute tasks, pheromone trails are updated based on the
success or failure of scheduling decisions. Rapid updates to pheromone trails allow ACO to adapt
quickly to changes in task priorities, resource availability, and other dynamic factors, enhancing
adaptability.
26
mechanisms tailored towards accommodating dynamic conditions. By leveraging decentralized
decision-making, feedback-based learning, and real-time responsiveness, ACO optimizes
adaptability while addressing the complexities of scheduling problems. Understanding and
optimizing adaptability in ACO is essential for enhancing the performance and reliability of
scheduling systems across various domains and applications. Effective adaptability ensures that
scheduling decisions remain efficient, responsive, and resilient in dynamic environments,
contributing to overall operational efficiency and customer satisfaction.
Algorithmic complexity:
Algorithmic complexity is a critical parameter in scheduling algorithms, reflecting the computational
resources required to execute the algorithm and the efficiency of its operation. In the context of Ant
Colony Optimization (ACO)-based scheduling, algorithmic complexity encompasses the
computational cost of constructing schedules, updating pheromone trails, and making scheduling
decisions. Understanding how ACO approaches algorithmic complexity involves analyzing its time
and space complexity, scalability, and optimization strategies tailored towards minimizing
computational overhead.
Scalability Considerations
Scalability refers to the ability of the algorithm to maintain performance as the input size increases.
In ACO-based scheduling, scalability is influenced by factors such as the efficiency of solution
construction, pheromone updating mechanisms, and convergence criteria. ACO is known for its
scalability, as it can handle large-scale scheduling problems with thousands of tasks and resources.
By leveraging parallelism, concurrency, and distributed computing techniques, ACO can scale
effectively to accommodate increasing input sizes while maintaining performance.
27
Managing algorithmic complexity often involves navigating trade-offs and constraints inherent in
scheduling problems. These may include resource limitations, time constraints, and competing
objectives. ACO practitioners must strike a balance between algorithmic complexity and scheduling
performance, optimizing the algorithm's efficiency while ensuring it meets the requirements of the
scheduling problem. By carefully considering these trade-offs and constraints, practitioners can
develop ACO-based scheduling algorithms that achieve the desired balance between complexity
management and performance.
Fairness:
Fairness is a fundamental parameter in scheduling algorithms, reflecting the equitable distribution of
resources and opportunities among competing tasks or users. In the context of Ant Colony
Optimization (ACO)-based scheduling, fairness encompasses the system's ability to allocate
resources and prioritize tasks in a manner that minimizes disparities and ensures equal treatment for
all stakeholders. Understanding how ACO approaches fairness involves exploring its mechanisms for
task allocation, resource management, and optimization strategies tailored towards enhancing
fairness.
28
ACO incorporates priority-based scheduling decisions that prioritize tasks based on their importance
and urgency. Artificial ants explore different solution paths and adapt their decisions based on task
priorities and fairness criteria. By considering task priorities impartially and allocating resources
accordingly, ACO promotes fairness in task scheduling and execution.
Overall Performance:
Overall performance is the comprehensive assessment of a scheduling algorithm's effectiveness in
achieving its objectives while considering various performance metrics, constraints, and real-world
factors. In the context of Ant Colony Optimization (ACO)-based scheduling, overall performance
encapsulates the algorithm's ability to optimize scheduling decisions, meet task deadlines, ensure
resource utilization, promote fairness, manage algorithmic complexity, and adapt to dynamic
conditions. Understanding how ACO contributes to overall performance involves evaluating its
impact on key performance indicators and its suitability for diverse application domains.
29
Meeting Task Deadlines
Meeting task deadlines is crucial for overall performance in scheduling algorithms. ACO prioritizes
task execution based on deadlines and allocates resources accordingly to ensure timely completion.
By dynamically adapting scheduling strategies and resource allocations, ACO enhances deadline
compliance and ensures that critical tasks are executed promptly.
Efficient Resource Utilization
Efficient resource utilization is essential for overall performance in scheduling algorithms. ACO
optimizes resource allocations based on pheromone concentrations, task requirements, and fairness
considerations to minimize idle time and resource contention. By balancing the workload across
resources and maximizing resource utilization, ACO enhances overall system productivity.
Promotion of Fairness
Fairness is an important aspect of overall performance, particularly in multi-user or shared-resource
environments. ACO aims to promote fairness by allocating resources impartially and prioritizing
tasks equitably. By considering fairness criteria in scheduling decisions and resource allocations,
ACO ensures that all stakeholders receive fair treatment and opportunities for task execution.
30
1. Resource Utilization:
31
solution space to identify optimal task priorities, ensuring that critical tasks are executed promptly
and resource contention is minimized.
Priority Scheduling assigns higher priorities to tasks with imminent deadlines, ensuring that time-
critical tasks receive preferential treatment. By leveraging ACO's adaptive behavior, Priority
Scheduling continuously adjusts task priorities in response to changing system conditions and
workload characteristics.
ACO dynamically updates pheromone trails based on task execution times, deadlines, and other task
attributes. This adaptive approach allows Priority Scheduling to effectively allocate system resources
and optimize task execution sequences.
By prioritizing tasks based on their importance and deadlines, Priority Scheduling with ACO
maximizes resource utilization efficiency and minimizes idle time. Critical tasks are executed first,
reducing the risk of missed deadlines and ensuring optimal system performance.
Conclusion:
Priority Scheduling with ACO outperforms FCFS with ACO in terms of resource utilization
efficiency. By dynamically adjusting task priorities based on importance, deadlines, and resource
requirements, Priority Scheduling ensures optimal allocation of system resources and minimizes idle
time. In contrast, FCFS with ACO may suffer from the convoy effect, leading to suboptimal resource
utilization and inefficient task execution sequences. Therefore, Priority Scheduling with ACO is the
preferred choice for scenarios where efficient resource utilization is crucial to achieving optimal
system performance.
2. Deadline Compliance:
Priority Scheduling with ACO excels in deadline compliance by leveraging both the prioritization
capabilities of Priority Scheduling and the adaptive behaviour of ACO. This approach dynamically
adjusts task priorities based on their deadlines, importance, and resource requirements, ensuring that
critical tasks are executed promptly to meet deadlines.
32
By assigning higher priorities to tasks with urgent deadlines, Priority Scheduling with ACO ensures
that time-sensitive tasks receive preferential treatment in task execution. ACO continuously
optimizes task priorities based on pheromone trails and heuristic information, adapting to changing
system conditions and workload characteristics.
The integration of ACO allows Priority Scheduling to explore the solution space effectively,
identifying optimal task sequences that prioritize deadline-sensitive tasks. Pheromone trails are
updated dynamically based on task attributes, guiding task selection and resource allocation to ensure
the timely completion of critical tasks.
Priority Scheduling with ACO provides flexibility and adaptability in meeting task deadlines,
allowing the scheduling algorithm to respond dynamically to changing priorities and deadlines. This
approach minimizes the risk of missed deadlines and ensures optimal system performance even in
dynamic scheduling environments.
Conclusion:
In conclusion, Priority Scheduling with ACO offers superior deadline compliance compared to FCFS
with ACO. By dynamically adjusting task priorities based on deadlines and importance and
leveraging the adaptive behavior of ACO, Priority Scheduling ensures that critical tasks are executed
promptly to meet deadlines. In contrast, FCFS with ACO may struggle to meet task deadlines
effectively due to its lack of prioritization based on deadlines or importance. Therefore, Priority
Scheduling with ACO is the preferred choice for scenarios where meeting task deadlines is crucial to
achieving optimal system performance.
3. Responsiveness:
33
based on pheromone trails and heuristic information, adapting to changing system conditions and
workload characteristics.
The integration of ACO allows Priority Scheduling to explore the solution space effectively,
identifying optimal task sequences that prioritize critical tasks. Pheromone trails are updated
dynamically based on task attributes, guiding task selection and resource allocation to ensure optimal
system responsiveness.
Priority Scheduling with ACO provides flexibility and adaptability in responding to changing
workload requirements, allowing the scheduling algorithm to optimize task scheduling and resource
allocation dynamically. This approach minimizes response times and user-perceived latency,
enhancing overall system responsiveness.
Conclusion:
In conclusion, Priority Scheduling with ACO offers superior system responsiveness compared to
FCFS with ACO. By dynamically adjusting task priorities based on urgency and importance and
leveraging the adaptive behaviour of ACO, Priority Scheduling ensures that critical tasks are
executed promptly to minimize response times and user-perceived latency. In contrast, FCFS with
ACO may struggle to achieve optimal system responsiveness due to its lack of prioritization based
on task urgency or importance. Therefore, Priority Scheduling with ACO is the preferred choice for
scenarios where achieving high system responsiveness is crucial to user satisfaction and overall
system performance.
4. Adaptability:
34
pheromone trails based on task attributes, guiding task selection and resource allocation to adapt to
dynamic workload characteristics.
The integration of ACO allows Priority Scheduling to explore the solution space effectively,
identifying optimal task sequences that prioritize critical tasks. Pheromone trails are updated
dynamically based on real-time feedback, ensuring that scheduling decisions are aligned with current
workload requirements and system constraints.
Priority Scheduling with ACO provides flexibility in adjusting scheduling strategies or parameters
dynamically based on changing workload characteristics or user demands. This approach ensures
that the scheduling algorithm can adapt to evolving workload requirements and optimize task
scheduling to achieve optimal system performance.
Conclusion:
In conclusion, Priority Scheduling with ACO offers superior adaptability compared to FCFS with
ACO. By dynamically adjusting task priorities based on evolving workload requirements and
leveraging the adaptive behaviour of ACO, Priority Scheduling ensures that scheduling decisions are
aligned with current system conditions and workload characteristics. In contrast, FCFS with ACO
may struggle to adapt its scheduling decisions effectively in dynamic environments, as it lacks
prioritization based on task attributes or deadlines. Therefore, Priority Scheduling with ACO is the
preferred choice for scenarios where achieving high adaptability is crucial to meeting changing
workload requirements and ensuring optimal system performance.
5. Fairness:
35
By leveraging ACO's adaptive behavior, Priority Scheduling with ACO effectively balances resource
allocation among competing tasks, minimizing resource contention and ensuring fair resource
distribution. ACO continuously updates pheromone trails based on task attributes, guiding task
selection and resource allocation to achieve equitable resource utilization.
The integration of ACO allows Priority Scheduling to explore the solution space effectively,
identifying optimal task sequences that balance resource allocation and prioritize critical tasks.
Pheromone trails are updated dynamically based on real-time feedback, ensuring that resource
allocation decisions are aligned with current workload requirements and system constraints.
Priority Scheduling with ACO provides mechanisms to prevent resource starvation and ensure
equitable distribution of system resources among competing tasks. By dynamically adjusting task
priorities based on importance and resource requirements, Priority Scheduling with ACO achieves
fairness in resource allocation, even in dynamic scheduling environments.
Conclusion:
In conclusion, Priority Scheduling with ACO offers superior fairness in resource allocation
compared to FCFS with ACO. By dynamically adjusting task priorities based on importance,
resource requirements, and system conditions, Priority Scheduling ensures that critical tasks receive
preferential treatment in resource allocation and that resource contention is minimized. In contrast,
FCFS with ACO may struggle to achieve fair resource allocation due to its lack of prioritization
based on task attributes or resource requirements. Therefore, Priority Scheduling with ACO is the
preferred choice for scenarios where fairness in resource allocation is crucial to achieving optimal
system performance.
6. Algorithmic Complexity:
36
on importance, deadlines, and resource requirements.
The algorithmic complexity of Priority Scheduling with ACO depends on the efficiency of priority
assignment, pheromone trail updates, and heuristic information utilization. The integration of ACO
allows Priority Scheduling to explore the solution space effectively and identify optimal task
sequences that prioritize critical tasks while considering various task attributes.
However, the additional complexity introduced by priority scheduling may require more
computational resources and parameter tuning compared to FCFS with ACO. The dynamic
adjustment of task priorities based on evolving workload requirements and system conditions adds
overhead to the scheduling algorithm but enables more effective resource allocation and task
scheduling decisions.
Conclusion:
In conclusion, Priority Scheduling with ACO may have a higher algorithmic complexity compared to
FCFS with ACO due to the additional complexity introduced by dynamic priority assignment and
task sequencing. While FCFS with ACO follows a simple scheduling policy of executing tasks in the
order they arrive, Priority Scheduling with ACO adds complexity by dynamically adjusting task
priorities based on various task attributes. Therefore, the choice between FCFS with ACO and
Priority Scheduling with ACO depends on the specific requirements of the scheduling scenario and
the trade-offs between algorithmic complexity and scheduling performance.
Overall Performance
After a thorough examination of various parameters, it is evident that Priority Scheduling with Ant
Colony Optimization (ACO) emerges as the superior choice compared to First Come First Serve
(FCFS) with ACO in achieving optimal overall performance in task scheduling scenarios. This
conclusion is drawn from an in-depth analysis of each parameter, where Priority Scheduling
consistently demonstrates advantages over FCFS across multiple dimensions.
Algorithmic Framework: Priority Scheduling with ACO leverages ACO's adaptive behaviour
to dynamically adjust task priorities based on urgency, importance, and resource requirements. This
flexible framework allows Priority Scheduling to optimize task sequencing and resource allocation
effectively, adapting to changing workload requirements and system conditions. In contrast, FCFS
with ACO inherits the limitations of its underlying scheduling policy, which prioritizes tasks solely
based on their arrival order, without considering task attributes or priorities. This rigid framework
restricts FCFS's ability to respond dynamically to evolving workload requirements, hindering its
overall performance.
Resource Utilization: Priority Scheduling with ACO excels in optimizing resource utilization by
prioritizing critical tasks and minimizing idle time. This dynamic prioritization ensures that resources
are allocated efficiently, maximizing system efficiency and performance. In contrast, FCFS with
ACO may suffer from suboptimal resource utilization due to its rigid scheduling policy, which does
not consider task priorities or resource requirements.
Deadline Compliance: Ensuring timely execution of critical tasks is crucial for meeting
deadlines and maintaining system reliability. Priority Scheduling with ACO achieves superior
deadline compliance by dynamically adjusting task priorities based on urgency and importance. This
proactive approach minimizes the risk of missed deadlines and ensures timely completion of critical
tasks. FCFS with ACO, lacking prioritization based on task attributes, may struggle to meet
deadlines effectively, potentially leading to delays and compromised system performance.
37
Responsiveness: System responsiveness, characterized by low response times and minimal
latency, is essential for providing a seamless user experience. Priority Scheduling with ACO
minimizes response times by prioritizing critical tasks, thereby enhancing system responsiveness and
user satisfaction. FCFS with ACO, however, may lead to increased response times and latency,
particularly in scenarios with heterogeneous task characteristics or priorities.
Fairness: Fairness in resource allocation is essential for ensuring equitable distribution of system
resources among competing tasks. Priority Scheduling with ACO promotes fairness by prioritizing
tasks based on urgency and importance, thereby minimizing resource contention and ensuring
equitable resource distribution. FCFS with ACO, lacking prioritization, may struggle to ensure
fairness, potentially leading to resource contention issues and unfair resource allocation.
Algorithmic Complexity: While Priority Scheduling with ACO may have a slightly higher
algorithmic complexity compared to FCFS with ACO due to dynamic priority assignment and task
sequencing, its advantages in resource utilization, deadline compliance, responsiveness, adaptability,
and fairness outweigh any computational overhead. The additional complexity introduced by
dynamic prioritization enables Priority Scheduling to achieve superior overall performance, making
it the preferred choice in dynamic scheduling environments. Despite the increased complexity,
Priority Scheduling with ACO offers several advantages over FCFS with ACO. By dynamically
adjusting priorities, the scheduler can allocate resources more efficiently, leading to improved
resource utilization and responsiveness. Moreover, the ability to prioritize tasks based on deadlines
enhances deadline compliance, ensuring that critical tasks are completed on time.
Conclusion: In conclusion, Priority Scheduling with ACO emerges as the clear winner in
achieving optimal overall performance compared to FCFS with ACO. Its dynamic task prioritization,
adaptability, and fairness in resource allocation give it a significant advantage in dynamic scheduling
environments, enabling it to respond effectively to changing workload requirements and system
conditions. While FCFS with ACO integrates ACO's adaptive behaviour, its inherent limitations in
resource utilization, deadline compliance, responsiveness, adaptability, and fairness hinder its overall
performance and usability. Therefore, Priority Scheduling with ACO stands out as the preferred
solution for achieving superior overall performance and efficiency in diverse scheduling scenarios.
38
The primary drawback of this approach is the absence of assurance on the discovery of the optimal
solution available. This is why ACO offers superior forecasting and connection issue results, making
it ideal for the planning process.
Achieving high performance is hard in any app, due to uncoordinated efficiency and process
scheduling. selecting an appropriate np-hard time for a set of processes that do not exceed their
capacity is the main task. Acos is used by studies in this model to maintain appointments.
There are m processors (p1, p2, p3,... pm) and all processors have the same burst time to solved the
timing problem. [14] let j1, j2, j3,..., jn be the n location sets. as a result, we will use the size n * m
matrix u, where m defines the number of processors and n the number of tasks. our primary objective
is to identify the ideal sequence of steps that the process can follow to minimize the overall
turnaround time.
Of them, Pi * Jj ± Ui,j
The number of rows in the sample matrix displayed in the above table corresponds to the number of
jobs, and the number of rows corresponds to the process.
• The ACO-based scheduling method shouldn't be overly simplistic; that is, no process should be
allowed to have its CPU taken away from it and shared with another.
Once finished, it is moved to additional procedures. Every transaction must arrive at zero time.
Processes
Jobs
P1 P2 P3
J1 U1,1 U1,2 U1,3
The ACO metaheuristic approach is derived from the astute actions of ants. When given a set of
dissimilar multiprocessors and job scheduling, the artificial ant uses random probability to assign
each task to a single processor, ensuring that each task is assigned to a single processor. Assume that
τi,j, the artificial pheromone value, has an edge between Ti and Pj. First, assume that ϊi,j will be the
same for each pair (i, j). Every trail's pheromone value is updated at the end of each iteration. The
following represents the behavior likelihood of ants in a heterogeneous multiprocessor, where the
ants randomly select a node from i to j: [18]
39
Additionally, there's a chance that multiple ants could be active simultaneously.
A. Solution Search Area: The fundamental ACO approach is used to schedule the processes. As a
result, the solution that was created included heuristic value calculation and search space creation.
The Fig. 3 shows the outlay of search space. [12] In search space, there are m rows, n columns and n k
number of processes to be scheduled, where each node represents the single process. Each column
consists of certain nodes which are connected to the nodes in the next column through directed edges
except the nkth node.
40
B. Limitations: An ant has to go in a certain order, that is, from left to right. Each column requires
the selection of a single node. Ants are required to visit only specific nodes (processes) along the
trail, denoted as nk, and each node has a unique label, as illustrated in Fig. 3.
C. Heuristic: The probability selection is influenced by the heuristic function and the previously
deposited pheromone trail. The heuristic function in this instance for optimization based on average
waiting time will be the average waiting time of a specific ant excursion. In a similar vein, the
heuristic function for optimization based on average turnaround time will be the average turnaround
time of a specific ant tour.
D. Probability: The heuristic value and pheromone value are the two factors used to calculate the
probability that a process will be selected in the search space. Here, probability is determined using
the classic ACO equation as follows:
In this case, ni,j is the heuristic value on those edges, while τi,j denotes the pheromone value on
edges (i, j). These values could serve as scheduling criterion for optimization.
E. Roulette Wheel Selection: In this instance, the probability determined by equation (6) is being
used to choose the processes. The higher probability determines the selection chance. The roulette
wheel selection approach uses probability to pick and assign processes an area commensurate with
their value. This indicates that a greater area will be occupied when the chance of selection increases.
F. Fitness Function: This function determines how fit each ant's trail is. The optimization criteria
serve as the foundation for the function's fitness. For instance, to maximize average waiting time, the
ants trail's average waiting time is utilized as the fitness value, as indicated in equation (7) below:
When all the ants complete a traverse, the best tour is found from the beginning of the trail (T) and
quantity ( ) where q is the constant parameter and L+ is the length of the best tour.
G. Pheromone: Ants use a chemical called pheromone to find their way from a food source to their
nest. Pheromone updates and pheromone evaporates are the two primary parts of ACO, as explained
below:
Pheromone Update: Ant navigation constantly modifies the pheromone value. The pheromone value
is updated on the path the ants have chosen once the trail has been completed after an iteration.[19]
The following is the pheromone updating equation:
If edge has been traversed then,
τi,j = τi,j + Update (9)
The quality used for pheromone updation of next iteration is given by:
(b) Pheromone evaporation is often referred to as pheromone degradation. The pheromone values on
the edges evaporate and decay by a certain amount after each iteration. Therefore, compared to edges
41
with lower pheromone concentrations, the edges with greater pheromone concentrations lose more
pheromone. The following formula is used to evaporate the pheromone value:
τi,j = τi,j – r (11)
Where r is the decay constant, which only has a range of 0 to 1. Pheromone evaporation rule is also
stated as follows:
τi,j = (1- decay constant) * τi,j (12)
The processor utilization, or average waiting and turnaround times for all jobs, as well as the time
required to create a workable plan, are the elements taken into consideration in this discussion. ACO
does some trials on the processor for each problem instance, and the average values of all the
parameters are taken into account. The scheduling algorithm is then applied to these numbers, and
the results are tallied. Until the ants come up with a set schedule, the iterations continue. At that
point, the timetable is considered focalized and convergent.
3) RESULT
Since ACO is a probabilistic metaheuristic, its generated outcomes are unique even when applied
repeatedly over a predetermined number of iterations to the same issue. Results for the cost function,
average waiting time, average turnaround time, and computational time provided by ACO are
compared and summarized in this research.
42
Pheromone value is initially set to 0.01. There will be 20 ants in all, and there will be 300 iterations.
The parameter for pheromone evaporation (ρ) is fixed at 0.05.
TABLE II: DIFFERENT VALUES OF ALPHA, BETA AND RHO FOR THE OPTIMAL COST
FUNCTION
S. No. Alpha(α) Beta(ᵦ) Rho(ᵧ) Cost Function
Table 3. Makes it evident that the range of alpha, beta, and rho contains the cost function's ideal
value.
Values for alpha, beta, and rho can vary from 0.1 to 1.0. In order to examine how alpha and beta
affect the cost function, we are attempting to alter their values in this study. Finally, it will become
evident that the defined range contains the optimal path that was reached. Table 3 displays the
outcomes that were thusly acquired.
This computed cost function is a minimization-type fitness function. The cost function is plotted
43
graphically along the specified number of iterations, as seen in Fig. (5):
2 03 19 16 05 16 05 12 10 05
3 18 19 02 14 18 09 18 04 10
4 15 09 15 14 04 13 03 07 07
5 19 08 06 10 08 18 07 11 02
6 19 13 06 09 14 12 04 12 12
7 11 02 04 06 11 10 03 11 19
8 10 13 10 11 19 17 08 19 05
9 11 16 08 10 12 10 07 10 04
10 04 06 02 07 12 17 08 04 04
For the scheduling algorithm, the number of ants used for ACO is 20 and the value of ρ is 0.5. Ten
trails are done for each problem instance for ACO and the average values of wait time of both the
algorithms i.e, FCFS and PRIORITY SCHEDULING are calculated and thus compared.
FCFS and PRIORITY SCHEDULING are applied to each problem instance using the usage matrix
that the ACO uses, which is displayed in Table 1. As a result, Table 5 tabulates the results.
44
TIME
ACO_FCFS ACO_PRIORITY SCHEDULING
Runs
TWT AWT TWT AWT
1 503 55.8889 353 39.2222
2 391 43.4444 238 26.4444
/3 498 55.3333 312 34.6667
4 411 45.6667 247 27.4444
5 405 45.0000 242 26.8889
6 436 48.4444 312 34.6667
7 247 27.4444 197 21.8889
8 448 49.7777 342 38.0000
9 400 44.4444 283 31.4444
10 240 26.6667 161 17.8889
The results in Table 5 make it evident that, when compared to FCFS, PRIORITY SCHEDULING
produces the best outcomes for ACO.
The average values of the scheduling criterion improve if the maximum number of iterations
permitted is increased. Table 6 displays the calculated values for both algorithms.
The total turnaround time (TTAT) for ten trails and the associated average turnaround time (ATAT)
45
for both methods are computed in Table 6 above.
D. Computation time
The experimental results, which compare the FCFS and PRIORITY SCHEDULING algorithms, are
displayed in Tables 5 and 6.
The average waiting time and average turnaround time results are used to compare the two.
As indicated in Table 7, the comparison is now also completed for the computational study.
ACO is used to compare and construct scheduling algorithms for different parameters in the
discussion above. Additionally, graph charts are used to display their comparing outcomes. Various
tests of hypotheses are now conducted, and the results are displayed in a subsequent discussion.
46
Conclusion
This study introduces an Ant Colony Optimization (ACO) approach for n-process scheduling, aimed
at achieving a balanced distribution of workload across multiple processors. By leveraging ACO, we
seek to optimize task assignments to minimize average turnaround time, average waiting time, and
computational time. In comparison to traditional scheduling algorithms like First-Come-First-Served
(FCFS) and Priority Scheduling, ACO demonstrates superior performance in evenly distributing the
workload.
The experimental results showcase the effectiveness of ACO-enhanced scheduling algorithms,
particularly when comparing FCFS_ACO with PRIORITY SCHEDULING_ACO. The latter
consistently outperforms in terms of average turnaround time, average waiting time, and
computational time. Through hypothesis testing, we assess the significance of these results. While
the data suggests no significant difference in turnaround times between FCFS and Priority
Scheduling, waiting times for these algorithms exhibit notable distinctions.
Looking ahead, this study lays the groundwork for future research endeavors. We propose extending
this approach to evaluate both primitive and non-primitive scheduling algorithms, considering
arrival-time comparisons. Additionally, we aim to employ ACO for assessing CPU throughput,
utilization, response time, and other performance metrics. By further refining and expanding upon
this technique, we anticipate uncovering insights that could enhance scheduling efficiency in diverse
computing environments. In conclusion, the integration of ACO into scheduling algorithms offers
promising prospects for optimizing system performance and resource utilization. As computing
systems continue to evolve, the application of advanced optimization techniques like ACO will be
instrumental in addressing the complexities of task scheduling and management. This study serves as
a stepping stone towards harnessing the full potential of ACO in computational scheduling, paving
the way for future advancements in this field.
Further analysis of the experimental results reveals the nuanced advantages of employing ACO in
process scheduling. While traditional algorithms like FCFS and Priority Scheduling have long been
relied upon in computational systems, their limitations become apparent when confronted with
complex and dynamic workloads. ACO, on the other hand, leverages principles inspired by the
behaviour of ants to iteratively improve task assignments, resulting in more adaptable and efficient
scheduling solutions. By capitalizing on the collective intelligence of the ant colony, ACO
transcends the deterministic nature of traditional approaches, allowing for more robust performance
across a variety of scenarios.
Moreover, the findings from the hypothesis testing underscore the need for a nuanced understanding
of scheduling metrics beyond simple turnaround times. While FCFS and Priority Scheduling may
exhibit similar turnaround times under certain conditions, the disparities in waiting times highlight
the importance of considering additional factors in evaluating scheduling algorithms. This insight
underscores the value of ACO in achieving a more holistic optimization of scheduling objectives,
taking into account not only turnaround times but also waiting times and computational efficiency.
Looking forward, the proposed extension of this research to encompass both primitive and non-
primitive scheduling algorithms represents a significant step towards a comprehensive understanding
of scheduling optimization. By incorporating arrival-time comparisons, researchers can gain deeper
insights into the performance characteristics of various scheduling strategies under different
workload scenarios. Additionally, the prospect of applying ACO to assess CPU throughput,
utilization, and response time opens up avenues for addressing broader system-level optimization
challenges.
In essence, this study not only demonstrates the immediate benefits of integrating ACO into
scheduling algorithms but also lays the foundation for future advancements in computational
scheduling methodologies. As computing systems become increasingly complex and heterogeneous,
the need for adaptive and intelligent scheduling approaches will only grow. By embracing techniques
like ACO, researchers can unlock new possibilities for optimizing system performance and resource
utilization, ultimately shaping the trajectory of computational scheduling in the years to come
47
References
[1]G.U.Srikanth, V.U. Maheswari, A.P. Shanthi and A.Siromoney, “A survey on real time task,” in
European J. of Scientific Research vol. 69(1), pp. 33-41, 2012.
[2]J. Mao, “Task Scheduling of parallel programming systems using Ant Colony Optimization,” in
Proceedings of the 3rd Int. Symposium on Computer Science and Computational Technology
(ISCSCT), vol. 10,pp. 179-182, 2010.
[3]Monika and Neelam, “job scheduling using FCFS and priority queue in system,” in int. J. of
Electrical Electronics and Computer science eng., vol. 2, pp. 6-9, 2015.
[4]A. Abhijit, Rajguru and S.S. Apte, “A performance analysis of Task Scheduling algorithms using
Qualitative parameters,” in Int. J. of Computer app., vol. 74, pp. 33-38, 2018.
[5]Braun, D.T., H.J. Siegel, N. Beck, L.L. Boloni and M. Maheswaran, “A comparison of eleven
static heuristics for mapping a class of independent tasks onto heterogeneous distributed computing
systems,” in J. Parallel Distributed Comput., vol. 61, pp. 810- 837, 2001.
[6]A. Radulescu and V.J.C. Gemund, “ Low-cost task scheduling for distributed-memory machines,”
in IEEE Trans. Parallel Distributed Syst., vol. 13, pp. 648-658, 2002.
[7]B. Ucar, C. Aykanat, K. Kaya and M. Ikinci, “Task assignment in heterogeneous computing
systems,” in J. Parallel Distributed Comput., vol. 66, pp. 32-46, 2006.
[8]C. Blum and A. Roli, “Metaheuristics in combinatorial optimization: Overview and conceptual
comparison,” in ACM Comput. Surv. , vol.35, pp. 268-308, 2003.
[9]C. Blum, “Ant colony optimization: Introduction and recent trends,” in Phys. Life Rev. (IIA
CSIC), vol. 2, pp. 353-373, 2005.
[10]Adhokshai Mishra, Ankur Verma, “Genetic Algorithm For Process Scheduling in distributed
Operating System,” in International Journal of Eng. Science and Technology, vol. 2(9), pp. 4247-
4252, 2010.
[11]Christian Blum, “Ant colony optimization: Introduction and recent trends,” albcom, lsi,
Universitat Politècnica de Catalunya, Jordi Girona1-3, vol. 2(4), pp. 353–373, 2005.
[12]Fariha Nosheen, Sadia Bibi and Salabat Khan, “Ant Colony Optimization based Scheduling
Algorithm,” in Int. Conf. on Open Source System and Tech. (ICOSST), IEEE, vol. 13, pp. 18-22,
2013.
[13]Salabat Khan, Mohsin Bilal, M. Sharif, Malik Sajid, Rauf Baig, “Solution of n-Queen Problem
Using ACO,” International Multitopic Conference, Islamabad, IEEE, vol. 2, pp. 1-5, 2009.
[14]H. Chen and A.M.K. Cheng, “Applying ant colony optimization to the partitioned scheduling
problem for heterogeneous multiprocessors,” in ACMUSA, vol. 2, pp. 11-14, 2005.
[15]M. Dorigo, “Optimization, Learning and Natural Algorithms,” in Ph.D. Thesis, Politècnica di
Milano, 1992.
48
[16]mariusz gł ˛abowski, bartosz musznicki, przemysław nowak and piotrzwierzykowsk, “Shortest
path problem solving based on ant colony Optimization metaheuristic,” in J. of Image Processing &
Communication, vol. 17, pp. 7-18, 2013.
[17]Marco Dorigo, Vittorio Maniezzo, and Albert0 Colorni, “Ant System: Optimization by a Colony
of Cooperating Agents,” in IEEE transactions on systems, man, and cybernetics-part b cybernetics,
vol. 26, pp. 1-4, 1996.
[18]Umarani Srikanth G., V. Uma Maheswari, P. Shanthi and Arul Siromoney, “Tasks Scheduling
using Ant Colony Optimization,” in J. of Computer Science, vol. 8 (8), pp. 1314-1320, 2012.
[19]Daniel Angus, “Solving a unique Shortest Path problem using Ant Colony Optimization,” in
Centre for Intelligent Systems and Complex Processes, vol. 8, pp.1-26, 2010.
[20]Vikas Gaba, Anshu Prashar, “Comparison of processor scheduling algorithms using Genetic
Approach,” in Int. J. of Advanced Research in Computer Science and Software Engineering, vol. 2,
pp. 37-45, 2012.
[21]J. Blazewicz, W. Domschkz, and E. Pesch, “The job shop scheduling problem: Conventional and
new solution techniques,” in European J. of Operational Res., vol. 93, pp. 1-30, 1996.
[22]P. Moscato and MG. Norman, “A memetic approach for the traveling salesman problem
implementation of a computational ecology for combinatorial optimization on message-passing
systems,” in Int. conf. on parallel comput. And transporter application, vol. 13, pp. 21-45, 1992.
[23]Marco Dorigo, Member IEEE, Vittorio Maniezzo, and Albert Colorni, “Ant System:
Optimization by a Colony of Cooperating Agents,” in IEEE transactions on systems, man, and
cybernetics-part b cybernetics, vol. 26, pp. 1-4, 1996.
[24]G. D. Caro and M. Dorigo, "Extending Ant Net for best-effort quality-of-service routing," in the
Proc. of the First Int. Workshop on Ant Colony Optimization, vol. 98, pp. 701-220, 1999.
[25]Dorigo, M. Caro, G. D., and Gambardella, L. M., “Ant Algorithms for Discrete Optimization:
Artificial Life,” in the Int. J. of Advanced Manufacturing Technology, vol. 5(2), pp. 137-172, 1999.
[26]Guoqiang Peter Zhang, “Neural Networks for Classification: A Survey,” in IEEE transactions on
systems, man, and cybernetics—part c: applications and reviews, vol. 30, pp. 127-128, 2000.
[28]K. M. Passino, “Biomimicry of Bacterial Foraging for Distributed Optimization and Control,”
in IEEE Control Syst. Magazine, vol. 22(3), pp. 1-12, 2006.
49
[31]C. Zhang, D. Ouyang and J. Ning, “An artificial bee colony approach for clustering,” in Expert
Syst. and Applications, vol. 37 (7), pp. 4761-4767, 2010.
[32]Yang, X.S., “Firefly Algorithm, Stochastic Test Functions and Design optimization,” in Int. J.
Bio-Inspired Computation, vol. 2, pp. 78-84, 2010.
[33]Imad Zyouta, Ikhlas Abdel-Qaderb and Christina Jacob, “Embedded Feature Selection using
PSO-kNN: Shape-Based Diagnosis of Micro calcification Clusters in Mammography,” in J. of
Ubiquitous Syst. & Pervasive Networks, vol. 3, pp. 7-11, 2011.
[34]Krishna H. Hingrajiya, Ravindra Kumar Gupta and Gajendra Singh Chandel, “An Ant Colony
Optimization Algorithm for Solving Travelling Salesman Problem,” in Int. J. of Scientific and Res.
Publications, vol. 2, pp. 1-6, 2012.
[35]Vahid Soleimani and Farnoosh Heidari Vincheh, “Improving ant colony optimization for brain
MRI image segmentation and brain tumor diagnosis, Pattern Recognition and Image Analysis,” in
First Iranian conf. on pattern recognition and image analysis (PRIA), IEEE, vol. 13, pp. 978-985,
2013.
[36]Rongali Srujana and Yalavarthi Radhika, “A Study on Recent Advances on Ant Colony
Optimization Algorithm,” in Int. J. of Advanced Scientific Res. & Development (IJASRD), vol. 4
(02/I), pp. 89-96, 2017.
[37]Dr. Kuldeep Singh Kaswan and Amandeep, “A new technique for CPU scheduling: standard
deviation based,” in Int. J. of Advanced Res. in Computer Eng. & Tech. (IJARCET), vol. 6, pp. 1278-
1282, 2017.
[38]Jogamohan Medak and Partha Pratim Gogoi, “A comprehensive analysis of disk scheduling
algorithms,” in Int. J. of Latest Trends in Eng. and Technology, vol. 11, pp. 11-23, 2018.
[39]Sudhanshu prakash tiwari and Dr. kapil kumar Bansal, “Nature inspired algorithms on
Industrial applications: A survey,” in Int. J. of Applied Eng. Res., vol. 13, pp. 4282-4290, 2018.
[40]Neetu Goel and Dr. R.B. Garg, “A Comparative Study of CPU Scheduling Algorithms,” in
Graphics & Image Processing, vol. 2, pp. 245-251, 2012
50
51