scieee AI-readable full text Open interactive document viewer

OPTIMIZED TASK SCHEDULING IN FOG-CLOUD ENVIRONMENTS USING A COST-AWARE GENETIC ALGORITHM

Journal of Theoretical and Applied Information Technology

Abstract

Cloud technology offers flexible computing and storage solutions over the internet. However, for latency-sensitive applications such as smart healthcare and smart cities, the reliance on centralized cloud data centers leads to significant performance issues, particularly in terms of delay. Fog and edge computing paradigms aim to address these issues by bringing resources closer to end-users, thus reducing latency and enhancing energy efficiency. In this paper, we propose a cost-aware, genetic-based (CAG) task scheduling algorithm tailored for fog-cloud environments, which seeks to improve cost efficiency for real-time applications with strict deadlines. Our approach is implemented and evaluated using the PureEdgeSim simulator, focusing on key performance metrics such as latency, network congestion, and cost. The results demonstrate that the proposed algorithm surpasses existing techniques like Round-Robin and Trade-off algorithms, achieving superior performance in terms of cost and throughput efficiency. These results demonstrate that the CAG algorithm is an effective solution for task scheduling in fog-cloud environments, offering better cost and deadline management compared to existing methods. This research has significant implications for latency-sensitive IoT applications, such as smart healthcare and smart cities, where efficient resource allocation and cost optimization are critical.

Full text

Journal of Theoretical and Applied Information Technology 15th June 2025. Vol.103. No.11 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4844 OPTIMIZED TASK SCHEDULING IN FOG-CLOUD ENVIRONMENTS USING A COST-AWARE GENETIC ALGORITHM YOUSSEF OUKISSOU 1, HAMZA ELHAOU 2, DRISS AIT OMAR 3, HICHAM ZOUGAGH 4, SAMIR ELOUAHAM 5 1Information Processing and Decision Support Laboratory, University of Sultan Moulay Slimane, Faculty of Science and Technologies, Beni Mellal 23500, Morocco 2Information Processing and Decision Support Laboratory, University of Sultan Moulay Slimane, Faculty of Science and Technologies, Beni Mellal 23500, Morocco 3Information Processing and Decision Support Laboratory, University of Sultan Moulay Slimane, Faculty of Science and Technologies, Beni Mellal 23500, Morocco 4Information Processing and Decision Support Laboratory, University of Sultan Moulay Slimane, Faculty of Science and Technologies, Beni Mellal 23500, Morocco 5LIST Laboratory, National School of Applied Sciences, Ibn zohr university, Agadir, Morocco E-mail: 1youssef.ouk[email protected]a, 2hamza.elhao[email protected], [email protected], 4h.zoug[email protected]a, [email protected] ABSTRACT Cloud technology offers flexible computing and storage solutions over the internet. However, for latencysensitive applications such as smart healthcare and smart cities, the reliance on centralized cloud data centers leads to significant performance issues, particularly in terms of delay. Fog and edge computing paradigms aim to address these issues by bringing resources closer to end-users, thus reducing latency and enhancing energy efficiency. In this paper, we propose a cost-aware, genetic-based (CAG) task scheduling algorithm tailored for fog-cloud environments, which seeks to improve cost efficiency for real-time applications with strict deadlines. Our approach is implemented and evaluated using the PureEdgeSim simulator, focusing on key performance metrics such as latency, network congestion, and cost. The results demonstrate that the proposed algorithm surpasses existing techniques like Round-Robin and Trade-off algorithms, achieving superior performance in terms of cost and throughput efficiency. These results demonstrate that the CAG algorithm is an effective solution for task scheduling in fog-cloud environments, offering better cost and deadline management compared to existing methods. This research has significant implications for latency-sensitive IoT applications, such as smart healthcare and smart cities, where efficient resource allocation and cost optimization are critical. Keywords: Fog Computing, IoT Scheduling, Edge Computing, Resource Allocation, Task Management 1. INTRODUCTION The Internet of Things (IoT) [1] represents a major technological shift in our digital age. This vast network connects billions of smart objects and sensors to the Internet, enabling the real-time collection and exchange of massive data about our physical environment [2], IoT applications are ubiquitous, spanning various fields such as smart cities, transportation, healthcare, Industry 4.0, home automation, precision agriculture, and more. According to Gartner, the number of connected IoT devices is expected to reach 25 billion by 2025, generating an enormous data traffic estimated at 175 zettabytes per year \cite{bonomi2012fog} This explosion of IoT data poses significant challenges in terms of network infrastructure, bandwidth, storage capacity, and especially the computational power needed to process and analyze these data streams in a timely manner. Initially, cloud computing was seen as the ideal solution to host IoT applications and provide ondemand elastic computing and storage resources. L e f t Journal of Theoretical and Applied Information Technology 15th June 2025. Vol.103. No.11 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4845 However, the inherently centralized nature of the cloud makes it unsuitable for meeting the critical requirements of latency, responsiveness, privacy, and service continuity demanded by many strategic IoT applications like smart healthcare and smart cities [3]. To address these limitations, new decentralized paradigms of proximity computing, known as fog computing and edge computing, have recently emerged. Their principle is to deploy computing, storage, and networking capabilities at the edge of the cloud, closer to IoT devices, thus enabling data processing at the source, in real time, and in a secure manner [4], by intelligently and complementarily combining fog, edge, and cloud computing, it becomes possible to leverage the advantages of each layer [5]. However, effectively orchestrating heterogeneous resources across this distributed hybrid architecture presents numerous challenges, particularly regarding the efficient scheduling of IoT tasks and data flows. It is essential to develop scheduling strategies that consider the multiple constraints inherent to various IoT applications (deadlines, quality of service, energy consumption, operational costs, etc.) to fully exploit the benefits offered by the fog-edge-cloud computing continuum [6]. In this paper, we propose a Cost-Aware Geneticbased (CAG) task scheduling algorithm, designed for fog-cloud environments. The algorithm aims to improve cost efficiency, reduce latency, and minimize network congestion in real-time applications with strict deadlines. We evaluate our approach using the PureEdgeSim simulator, focusing on key performance metrics such as latency, cost, and network congestion. The structure of this paper is organized as follows: Section 2 discusses the background and related works in task scheduling techniques, followed by the proposed methodology in Section 3. Section 4 presents the simulation settings and results, and finally, Section 5 concludes the paper with future research directions. 2. BACKGROUND AND RELATED WORKS Figure 1: The Classification Of Task Scheduling Techniques In Fog Computing. Figure 1 presents an overview of task scheduling techniques in fog environments, organizing them into four main categories: machine learning, heuristic-based approaches, metaheuristic-based methods, and deterministic strategies. The articles analyzed in this study are placed within these categories to highlight their relevance. In the sections that follow, we review and compare these works, focusing on qualitative parameters to provide a comprehensive understanding. 2.1 An Overview of Machine Learning Mechanisms Conventional approaches are ineffective with large data sets [7], [8], Machine learning techniques play a crucial role in improving the efficiency and precision of fog task scheduling. By examining historical data and uncovering patterns, these algorithms can forecast future traffic loads and strategically optimize task allocation to meet system demands effectively. This approach helps minimize latency, enhance overall system performance, and maximize resource utilization. Furthermore, machine learning algorithms can identify anomalies or potential system failures early on, enabling proactive measures to mitigate issues before they escalate. Incorporating machine learning into fog task scheduling can greatly improve the efficiency of the scheduling process while boosting the overall performance of fog computing systems. In this section, the chosen machine learning-based techniques are grouped into three distinct categories. The strengths and limitations of these methods are thoroughly examined and discussed. 2.1.1 Artificial Neural Network (ANN) Based Methods for Task Scheduling Arri, al [9] designed an enhanced system for managing Task Group Aggregation (TGA) overflow in fog computing environments, leveraging neural computing techniques. They developed an Artificial Neural Network (ANN) based algorithm that detects overloaded servers and efficiently redistributes the Journal of Theoretical and Applied Information Technology 15th June 2025. Vol.103. No.11 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4846 data to Virtual Machines (VMs) within the fog computing network. Various factors such as CPU, memory, and bandwidth are considered to balance VMs. Additionally, the Artificial Bee Colony (ABC) algorithm is used to separate services and users based on their specific quality requirements. The introduced ANN-based overflow handling algorithm improves response time and success rate parameters compared to current approaches. However, energy consumption is not addressed in this paper. Considering the computational complexity of ANN algorithms, future work could extend this research by optimizing the models' computational complexity and incorporating energy efficiency considerations into the algorithm. 2.1.2 Deep Reinforcement Learning (DRL) Based Methods for Task Scheduling DRL-based methods offer a promising approach to improving task scheduling in fog computing environments, with the potential to reduce energy consumption and enhance overall system performance. These methods learn from past experiences and make decisions based on real-time data, leading to reduced latency. However, a potential drawback is the complexity and computational cost of implementing DRL algorithms, which may require significant resources. For instance, Li, al [10] utilized deep learning models for fog task scheduling in mobile crowd sensing applications. The authors enhanced the efficiency of image data processing by deploying IoT devices as part of a multilayer structure in a deep learning Convolutional Neural Network (CNN) model. The simulation results showed that the proposed solution minimizes bandwidth costs from fog nodes to the cloud layer, thereby reducing cloud layer computations. This approach focuses on optimizing energy consumption and reducing delay by dynamically adjusting the sampling rate of sensor data. It also enables proactive measures to prevent potential failures by predicting future resource availability and adjusting task scheduling accordingly. This helps meet execution deadlines and improves response times. However, as the system scale grows, the proposed model struggles to converge, resulting in unstable outcomes. Gazori, al [11] also employed a DRL-based model for fog task scheduling in mobile crowd sensing applications. They proposed an efficient task scheduling algorithm based on a double deep Qlearning model. The purpose of this algorithm is to reduce service latency and measurement costs within the constraints of resources and time limits. According to the results presented in the paper, the model outperforms simpler techniques in terms of delay and task completion time. Additionally, the proposed algorithm addresses single-point failure problems and fog load balancing issues. However, the algorithm reaches a solution at a slow pace and faces uncertainty in high-dimensional state-action spaces. The article does not provide specific information on how the DRL approach performs in terms of network bandwidth and energy consumption criteria. Swarup, al [12] and [13] proposed an algorithm called Clipped Double Deep Q-learning for IoT task scheduling in fog-based environments using deep reinforcement learning to address service latency and energy efficiency. The proposed model utilizes experience replay and target network techniques. The authors aim to improve energy efficiency, reduce costs, and minimize delays in task scheduling. The algorithm clusters IoT devices based on their resource requirements and schedules tasks for each cluster using deep reinforcement learning. A parallel queue is also employed to ensure optimal resource utilization without lag. However, potential issues with execution time and network bandwidth may arise. 2.1.3 Graph-Based Deep Learning Methods for Task Scheduling Graph Neural Networks (GNNs) are a type of neural network tailored for working with graph-structured data. This approach has attracted considerable interest in recent years because of its effectiveness in tackling challenges across various fields, including social network analysis and privacy-preserving machine learning. Recently, GNNs have emerged as a promising solution for optimizing task scheduling in fog computing by leveraging the power of deep learning and graph theory. Graph-Based Deep Learning Methods use graphbased models to represent the relationships between tasks and resources in the fog computing environment. These models can capture complex dependencies between tasks and resources, allowing for more accurate scheduling decisions. However, these methods can be computationally expensive and require large amounts of data to train. For instance, Jamil, al [14] proposed a new algorithm called IRATS for online resource allocation and task scheduling in a vehicular fog Journal of Theoretical and Applied Information Technology 15th June 2025. Vol.103. No.11 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4847 network. The algorithm, based on deep reinforcement learning, considers both priority and deadline constraints of tasks. It first predicts future resource requirements using a Long Short-Term Memory (LSTM) network. Then, a DRL agent allocates resources to tasks based on their priority and deadline constraints while considering the current state of the network. The DRL agent learns from past experiences to make better decisions in the future. IRATS can handle dynamic changes in the network, prioritize tasks based on their importance, and meet task deadlines. However, training the DRL agent requires significant computational resources, and the accuracy of the LSTM network's predictions may be affected by changes in the network environment. Furthermore, Li, al [15] developed a deep-graphbased reinforcement learning approach for joint cruise control and task offloading in aerial EdgeIoT systems. This approach uses a GNN to model the complex relationships among system components and optimize joint control and offloading decisions. The proposed method improves system performance, reduces energy consumption, and enhances reliability. However, it requires significant computational resources and may suffer from scalability issues in large-scale systems. Overall, the paper presents a promising approach for optimizing EdgeIoT systems, but further research is needed to address its limitations. Table 1: Summary Of The Task Scheduling In Machine Learning Mechanisms. Journa l Technique Advantage Weakness Arri, et al. (2021) ANNbased overflow manageme nt algorithm Low response time High execution time, High energy consumpti on Li, et al. (2019) DRL-based models for fog task scheduling in a mobile crowdsensing application Low latency, Low energy consumpti on, Low response time, Low execution time High uncertaint y, High cost, High resource utilization, High execution time Gazori , et al. (2020) Double deep QLow latency, Low High uncertaint y, High learning model response time, Low execution time cost, High resource utilization, High execution time Swaru p, et al. (2021) Deep reinforcem ent learning Low energy consumpti on, Low latency, Low cost, Low resource utilization High execution time, High bandwidth Jamil, et al. (2023) Graphbased deep learning model Low execution time High resource utilization, High uncertaint y Li, et al. (2022) Deepgraphbased reinforcem ent learning Low energy consumpti on, Low uncertainty High resource utilization, Low scalability 2.2 An Overview of Heuristic Based Mechanisms Heuristic-based mechanisms for fog task scheduling are methods that use rules of thumb or best practices to allocate tasks to devices in a fog computing environment. These mechanisms do not rely on machine learning techniques but rather on simple decision-making rules based on experience or intuition. While heuristic-based mechanisms are simple and easy to implement, they may not always result in optimal task allocation [16]. They also do not adapt to changing conditions or learn from past experiences as machine learning-based approaches do. The following section reviews several heuristicbased fog scheduling methods that utilize various factors to achieve improved scheduling outcomes. For instance, Arisdakessian, al [17] presented FoGMatch, an intelligent multi-criteria IoT-Fog scheduling approach that uses game theory to allocate tasks to fog nodes. FoGMatch considers multiple factors such as energy consumption, delay, and resource availability in its decision-making process. The authors compare FoGMatch with other scheduling approaches and show that it outperforms them in terms of task completion time and energy Journal of Theoretical and Applied Information Technology 15th June 2025. Vol.103. No.11 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4848 consumption. The advantage of FoGMatch is its ability to adapt to changing conditions and learn from past experiences, as well as considering multiple criteria in its decision-making process, which can lead to better task allocation. However, the disadvantage is that it relies on complex algorithms and may require more computational resources than simpler heuristic-based mechanisms. Furthermore, Azizi, al [18] formulated the task scheduling problem with the objective of reducing the overall energy consumption of fog nodes while meeting the various qualitative requirements of IoT tasks. The proposed model aims to minimize deadline violation time. The authors mapped IoT tasks to fog nodes using two semi-greedy algorithms: Priority-aware Semi-Greedy (PSG) and PSG with Multi-start method (PSG-M). According to the results, the proposed algorithms increase the percentage of tasks that meet their deadlines, reduce the total time of deadline violations, and optimize the energy consumption of fog resources and system makespan compared to existing algorithms. The time complexity analysis in the paper suggests that this algorithm is a suitable solution for real-time scheduling of IoT tasks in fog computing systems. In addition, Hosseini, al [19] presented a dynamic scheduling algorithm based on the Priority Queue, Fuzzy, and Analytical Hierarchy Process (PQFAHP). The PQFAHP algorithm combines multiple priorities and can perform multi-criteria prioritization. The authors implemented dynamic scheduling based on various criteria, including completion time, energy consumption, RAM, and deadline. The outcomes revealed that the multicriteria PQFAHP outperforms benchmark algorithms in terms of waiting time, delay, service level, response time, number of scheduled tasks, and energy consumption. Xu, al [20] proposed an algorithm based on adaptive dynamic programming to find the best path for processing data with different priorities at fog nodes. The goal of the proposed algorithm is to reduce time delay and energy consumption for priority-based tasks. Simulation results showed that the proposed algorithm increases efficiency and reliability while reducing power consumption. Table 2: Summary Of The Task Scheduling In HeuristicBased Mechanisms. Journal Technique Advantag e Weakn ess Arisdakess ian, et al. [11] Intelligent schedulin g based on game theory Low energy consumpti on, Low execution time High resourc e utilizati on Azizi, et al. [12] Semigreedy algorithm Low energy consumpti on, Low execution time, Low complexit y Hosseini, et al. [13] Fuzzy and analytical hierarchy process Low latency, Low response time, Low energy consumpti on High resourc e utilizati on Xu, et al. [14] Dynamic programm ing Low energy consumpti on, Low cost, Low execution time High resourc e utilizati on 2.3 An Overview of Metaheuristic Based Mechanisms In meta-heuristic algorithms, a random solution space is used for task scheduling. With a few modifications, these algorithms can solve various optimization problems [21]. Meta-heuristic algorithms are problem-independent [22], and using them for fog task scheduling has shown promise in improving resource utilization and reducing latency in distributed fog computing environments. This section reviews several studies on meta-heuristic task scheduling in the fog environment. Xu, al [23] proposed a task scheduling approach based on Laxity-Based Priority and Ant Colony System (LBP-ACS) in a cloud-fog environment. The LBP algorithm is applied to determine the priority of tasks, and the Constrained Optimization Algorithm based on the ACS (COA-ACS) is used for task scheduling. Simulation results showed that the proposed algorithm outperforms Greedy for Energy (GfE), Heterogeneous Earliest Finish Time (HEFT), and hybrid ant colony optimization with differential evolution algorithms in terms of reducing energy consumption and failure rate in scheduling Journal of Theoretical and Applied Information Technology 15th June 2025. Vol.103. No.11 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4849 dependent tasks with mixed deadlines. However, the study only considered associated tasks, not independent ones. Ghobaei-Arani, al [24] introduced a Moth-Flame Optimization (TS-MFO) algorithm for scheduling tasks in the fog environment. The main goal of the TS-MFO algorithm is to meet the QoS requirements of Cyber-Physical System (CPS) applications. The algorithm identifies the best solutions to locate fog nodes. Using the iFogSim simulator, TS-MFO is compared with Particle Swarm Optimization (PSO), Non-dominated Sorting Genetic Algorithm-II (NSGA-II), and Bee Life Algorithm (BLA). Results revealed that the TS-MFO algorithm reduces the total execution time of tasks. However, the study does not consider energy consumption and communication cost. Rafique, al [25] proposed a Novel Bio-Inspired Hybrid Algorithm (NBIHA) for efficient task scheduling and resource management in the fog environment. NBIHA combines Modified Particle Swarm Optimization (MPSO) and Modified Cat Swarm Optimization (MCSO). The algorithm discovers the best match of fog devices for an input task based on the requested memory and CPU time. Compared to First Come First Serve (FCFS), Shortest Job First (SJF), and MPSO, the NBIHA algorithm provides better results in terms of execution time, energy consumption, and average response time. However, this study does not address communication cost. Hosseinioun, al [26] proposed an efficient hybrid algorithm based on invasive weed optimization and culture algorithms. The goal of this algorithm is to minimize energy consumption using Dynamic Voltage and Frequency Scaling (DVFS). The results confirmed that the proposed DVFS algorithm meets real-time requirements in heterogeneous systems. Table 3: Summary Of The Task Scheduling In Metaheuristic-Based Mechanisms Journal Techniqu e Advantag e Weakness Arisdakess ian, et al. [1] Intelligen t schedulin g based on game theory Low energy consumpt ion, Low execution time High resource utilization Xu, et al. [2] Laxitybased priority and Ant Colony System Low energy consumpt ion High execution time GhobaeiArani, et al. [3] MothFlame Optimiza tion algorithm Low execution time High energy consumpt ion, High cost Rafique, et al. [4] Bioinspired hybrid algorithm Low execution time, Low response time, Low energy consumpt ion High cost Hosseinio un, et al. [5] Invasive Weed Optimiza tion and Cultural Algorith m Low energy consumpt ion, Low execution time 2.4 An Overview of Deterministic Mechanisms Deterministic mechanisms always produce the same output for a given input. Deterministic mechanisms for fog task scheduling involve using a predefined set of rules and algorithms to allocate tasks to fog nodes. An example of a deterministic approach is exhaustive search, where the entire search space is enumerated to find the optimal plan based on a given cost model. These mechanisms do not involve any randomness or probabilistic methods. While deterministic mechanisms are simple and easy to implement, they may not always result in optimal resource utilization or latency reduction. This section discusses deterministic mechanisms for fog task scheduling. Kyung [27] presented a prioritized task distribution model considering static Journal of Theoretical and Applied Information Technology 15th June 2025. Vol.103. No.11 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4850 and opportunistic fog nodes with respect to their mobility. In this model, delay-sensitive tasks are processed in static fog nodes, while delay-insensitive tasks are handled in opportunistic fog nodes. The results showed that the proposed model performs better than traditional models in terms of service response delay and outage probability. However, ranking fog nodes may not always accurately reflect their actual computing capabilities or workload, and prioritizing tasks could lead to lower-priority tasks being delayed or neglected, impacting overall system performance. Tsai, al [28] proposed a linear transformation model to solve the nonlinear task assignment problem in cloud-fog systems. Various criteria, including execution time and operating costs, are considered for optimal task allocation. The model finds the optimal solution based on task requirements, nodes’ processing speed, and nodes’ resource usage cost. Although effective, the computational complexity of this approach grows rapidly as the problem size increases. Caminero and Muñoz-Mansilla [29] introduced a network-aware scheduling algorithm to select the appropriate fog node to execute an application within a given deadline. The algorithm, an extension of the Kubernetes default scheduler, considers the network status in its scheduling decisions. Results showed that the algorithm executes all submitted tasks within the deadline, reaching an optimal solution. Similarly, Yin et al. [30] presented container-based task scheduling algorithms in fog computing, which improved resource utilization by minimizing delay. Razaque, al [30] proposed an efficient hybrid algorithm to decrease energy consumption for the Mobile Fog-Based Cloud (MFBC). The algorithm uses a voltage scaling factor to reduce energy consumption and secures the identity of mobile cloud users using blockchain technology. The approach includes job-scheduling and machine power calculation modules to allocate tasks for mobile fog cloud users in a time-series fashion, improving throughput and latency. It also proposes a secure key management scheme to ensure secure communication between fog nodes and the cloud. The performance of this algorithm is significantly better than state-of-the-art algorithms in terms of security, energy efficiency, throughput, and latency. However, the complexity of the architecture may require significant resources to implement. Table 4: Summary Of The Task Scheduling In Deterministic Mechanisms. Journal Technique Advantage Weaknes s Kyung [1] Prioritybased Task Distribution Model Low response time, Low uncertaint y High complex ity Tsai, et al. [2] Linear Transformat ion Model Low latency High resource usage, High executio n time Camine ro and MunozMansill a [3] Bio-inspired Hybrid Algorithm Low execution time, Low latency High complex ity Razaqu e, et al. [4] Prioritybased Task Distribution Model Low energy consumpti on, Low execution time, Low latency, High security High resource usage 3. COST-AWARE TASK SCHEDULING 3.1 Challenges of Cost-Based Planning: Before presenting the CAG algorithm in detail, it is essential to identify the main challenges associated with scheduling in a distributed environment: - Latency constraints: Some IoT applications require near-instantaneous processing, making it essential to take latency into account. - Variable costs: fog and cloud resources present heterogeneous costs depending on their availability, load and energy consumption. - Dynamic resource allocation: The heterogeneous, dynamic nature of devices requires flexible, scalable task allocation. Journal of Theoretical and Applied Information Technology 15th June 2025. Vol.103. No.11 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4851 These challenges justify the use of a genetic algorithm to find an optimized solution. 3.2 Rationale for Choosing Genetic Algorithms: Genetic algorithms (GA) are chosen for their ability to solve complex optimization problems. Compared with simpler approaches such as Round-Robin or Trade-Off algorithms, GA offers the following advantages: - Efficient exploration of the search space: identifies a solution close to the global minimum. - Adaptability: can dynamically adjust to load variations and latency fluctuations. - Multi-criteria optimization: simultaneously minimizes costs and maximizes success rates. This algorithm exploits these strengths to allocate tasks optimally, while minimizing costs and meeting deadlines. 3.3 Comparison with Other Approaches To situate the effectiveness of CAG in relation to other scheduling methods, the following table summarizes the key features: Table 5: Comparison Of Task Scheduling Approaches In Fog-Cloud Environments Appr oach Complexit y Cost optimi zation Latenc y manag ement Adapta bility Roun dRobin [27] Linear Complexi ty(O(n)) Low Mediu m Low Trade - Off [31] LogLinear Complexi ty (O(n log n)) Avera ge Good Avera ge CAG (prop osed, this word) LogLinear Complexi ty (O(n log n)) High Excell ent High Explanation of Complexity Terms: - Round-Robin: Linear Complexity (O(n)): For example, if you have 10 tasks, Round-Robin will take 10 units of time. If you have 100 tasks, it will take 100 units of time. This makes it less suitable for largescale systems. - Log-Linear Complexity (O(n log n)): For example, for 100 tasks, Trade-Off will take around 100 * log(100) time units, which is considerably better than Round-Robin for large sets of tasks. - Log-Linear Complexity (O(n log n)): Like Trade-Off, CAG is effective for large task sets, but is smarter in the way it explores and exploits solutions, making it more efficient in terms of latency and cost management. 3.4: Cost-Aware Genetic Algorithm (CAG) The cost-based genetic algorithm is a decisionmaking process used for task scheduling in distributed systems such as fog and cloud computing. The goal is to optimize the allocation of resources to tasks over a defined period, considering multiple objectives, including processing cost and meeting deadlines for time-constrained tasks. Figure 2: System Model Of Scheduling The figure 2 illustrates the task scheduling process in a fog-cloud environment, managed by the MasterFogNode. The scheduling system is managed by a central planning node called the MasterFogNode. When a task request is received, the MasterFogNode executes the scheduling algorithm. This algorithm estimates the completion time of tasks based on the network and processing capabilities of available resources and the requirements of the tasks. If a task cannot be completed on time, it is rejected. Otherwise, it is sent Journal of Theoretical and Applied Information Technology 15th June 2025. Vol.103. No.11 © Little Lion Scientific ISSN: 1992-8645 www.jatit.org E-ISSN: 1817-3195 4852 to the corresponding resources (fog nodes or cloud nodes) for processing. After processing, the results are returned to the MasterFogNode and then transmitted to the requester. To provide an optimal solution, the MasterFogNode uses a cost-aware genetic algorithm (CAG) to assign a set of tasks T={t1,t2,…,tn} to fog and cloud nodes D={d1,d2, …,dm}. The algorithm takes an incoming list of tasks and available processing nodes as input. Each task has key characteristics such as arrival time, number of instructions, upload size, result data size, and deadline. The tasks are considered independent (Bag of Tasks - BoT) and can be scheduled independently of each other. In the Genetic Algorithm, each possible solution is represented by a chromosome (individual). The representation of chromosomes is done through integer coding, which includes resource identifications. A set of chromosomes in a generation is called a population. The CAG algorithm begins with defining the representation method (chromosome encoding). It randomly generates the initial generation of chromosomes (initial population). A fitness function is defined to measure the quality of solutions. This fitness function is used to determine which chromosomes will survive or be reproduced in subsequent generations. The search process, based on the fitness function, aims to provide the most suitable individuals. The objective of the CAG algorithm is to reduce the task execution cost and increase the success rate of tasks completed within deadlines. To achieve this, the algorithm considers the total cost of computing resources and bandwidth used for task execution. The first generation of chromosomes (initial population) is generated randomly. Another important step is defining the fitness function, which measures the quality of solutions by taking a candidate chromosome as input and producing an indication of how relevant the solution is relative to the problem's objectives. Thus, the fitness function determines which chromosomes will survive or be reproduced in subsequent generations, and the search process based on this fitness function attempts to provide the most suitable individuals. To reduce the cost and increase the success rate, the fitness function is defined as follows:  Cost représente le coût financier total de l'exécution des tâches.  SuccessRate indique la fraction des tâches qui ont été accomplies avec succès. 𝑓(𝑥)=𝐶𝑜𝑠𝑡 𝑆𝑢𝑐𝑐𝑒𝑠𝑠𝑅𝑎𝑡𝑒 (1) The fitness function is designed to evaluate solutions based on these two criteria, aiming to minimize the cost while maximizing the task success rate. Chromosomes corresponding to low-cost solutions with a high success rate are more likely to be selected for reproduction, enabling the algorithm to converge towards more effective solutions over generations. Figure 3: PSEUDO CODE OF CAG ALGORITHM According to the CAG algorithm illustrated in Figure 3, the first step is to define the representation method (chromosome encoding). Each possible solution in the genetic algorithm is represented by a chromosome (individual). To represent the chromosomes, integer coding that includes resource identifications is used. A set of chromosomes in a generation is called a population. The first generation of chromosomes (initial population) is generated randomly, another crucial step is defining the fitness function, which measures the quality of solutions by taking a candidate chromosome as input and determining how well that