You are on page 1of 7

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/375868187

An Ameliorated Methodology for Water Supply and Management Using Binary


Trees

Conference Paper · November 2023


DOI: 10.1109/ICCCNT56998.2023.10308120

CITATIONS READS

0 29

4 authors, including:

Arunakumari B. N.
BMS Institute of Technology
29 PUBLICATIONS 54 CITATIONS

SEE PROFILE

All content following this page was uploaded by Arunakumari B. N. on 24 November 2023.

The user has requested enhancement of the downloaded file.


IEEE - 56998

An Ameliorated Methodology for Water Supply and


Management Using Binary Trees
Arunakumari B N Vishal R Setty Villuri Vivek
2023 14th International Conference on Computing Communication and Networking Technologies (ICCCNT) | 979-8-3503-3509-5/23/$31.00 ©2023 IEEE | DOI: 10.1109/ICCCNT56998.2023.10308120

Computer Science and Engineering Computer Science and Engineering Computer Science and Engineering
BMS Institute of Technology and BMS Institute of Technology and BMS Institute of Technology and
Management Management Management
Karnataka – 560064 India Karnataka -– 560064 India Bangalore, India
arunakumaribn@bmsit.in c61@bmsit.in c60@bmsit.in

Sujan Ramesh Sowmyashree P Kshama S B


Computer Science and Engineering Computer Science and Engineering Dept. of Information Science and
BMS Institute of Technology and BMS Institute of Technology and Engineering
Management Management BMS Institute of Technology and
Bangalore, India Bangalore, India Management
c37@bmsit.in a72@bmsit.in Bengaluru, India
kshamasb@bmsit.in

Abstract— Water supply system is an infrastructure for technological, chemical, and environmental aspects [1][2]. On
collection, storage, transmission, and distribution of water to bringing our focus to the technological aspects we can prepare
homes, factories, irrigation of agricultural fields, etc. Water a planner or a draft on how these connections should run using
holds an important factor in growth of the city. Earlier, lakes the binary search tree data structure mechanism and IOT
and rivers are the major source of water supply to the cities and devices, but it should not only be restricted to the area of
villages. The rivers followed their own path throughout the city
and provided water to some specific areas. Due to this the new
searching of the fixing of pipelines underground but in some
areas which were being developed would not have direct extreme cases such as breakage or leakage of pipelines there
connection to the new areas, the people would have to look for will be a disruption in the supply of water to that particular
other alternatives or use the water available from the region so this has to be notified to the concerned authorities
underground water beds, by building wells. Water connection and they will have to notify the same to the localities where
to different regions is setup in an organized manner. Even the water supply is prevented.
though everything is organized, but there are certain drawbacks In order to notify this, we make use of binary search tree
such as improper detection in the leakage of pipe lines and concept and IOT devices. Designing a different route for this
failure in the proper use of technology to setup and organize. pipeline as a draft and give this to the civil engineer to install
In this paper, an attempt has been made to rectify these
problems by applying the concept of binary search tree. Also,
it accordingly. This helps in notifying the people of the
we have discussed about how pipelines can be setup locality beforehand and designing a different route for the
underground in a smooth manner and using IOT devices to pipeline using binary search tree concept to make the
detect leakages or breakages in the pipelines, so that the water arrangement of pipelines in a much-organized manner.
is not wasted.
Keywords— Water Supply, Branches, Trees, Binary Search Tree, II. LITERATURE SURVEY
IOT. A paper titled "Optimizing water distribution system
operations using binary search trees" is one example of
I. INTRODUCTION
employing BSTs in water management [3]. The study
Water connection and supply in India is viewed as a suggested a technique for BST-based water pump scheduling
community-based driving system, which aims to provide and in a distribution network, which led to increased system
enhance the supply of water to localities of villages, small effectiveness and lower energy costs.
towns, and large cities. This system is spread across a large The safety of the urban water supply depends on the secondary
part of the country and is highly efficient in improving the water supply, which is the last part of the urban water supply
water supply to various states of the country. This water system and is directly tied to how much water consumers use.
connection and supply system works on the data structure type But water kept in secondary water supply facilities is more
i.e., binary search tree. A Binary search tree is a special type likely to lose its disinfectants (chlorine residual), which can
of binary tree in which the left child of the junction has a value encourage the growth of germs and worsen water quality. As
less than that of the junction’s value and the right child of the a result, it's critical to find solutions to secondary water supply
junction has a value greater than that of the junction’s value. issues and improve system administration. The intelligent
This property is called the BST property using which different management model based on information technology has
tree operations such as searching, insertion and deletion developed into a significant trend in the context of the Internet
operations can be efficiently executed. This binary search tree of Things [4]. This is Shanghai's implementation of the
can be technologically used in designing the idea of intelligent management concept for secondary water supply.
establishing pipeline connections to different houses, villages, [5] study investigates the application of artificial intelligence
towns, cities, and states of the country. Search operation can methods, such as neural networks and evolutionary
be used to detect any malfunctioning in the pipelines, IOT algorithms, to enhance the layout and performance of water
devices are used to detect. The motive behind this scenario is distribution systems.
that there is water connection and supply to different parts of
the country which is established physically based on the

14th ICCCNT IEEE Conference


Authorized licensed use limited to: BMS Institute of Technology. Downloaded on November 24,2023 at 11:02:11 UTC from IEEE Xplore. Restrictions apply.
July 6-8, 2023
IIT - Delhi, Delhi, India
IEEE - 56998

In order to promote integrated water resource management Social equity: IWRM must address social equity
and increase the dependability of the water supply, [6] study considerations, including access to clean water and the needs
suggests a system dynamics model. of marginalized communities. Failure to address these
In order to improve system effectiveness and water supply considerations can result in unequal access to water resources
dependability, [7] this research provides a particle swarm and perpetuate existing social inequalities [6].
optimization technique to optimise water supply network While the use of genetic algorithms to optimize water
design and operation. distribution system operations has shown promise, there are
The use of genetic algorithms to optimise water distribution some potential drawbacks to consider:
system operations was published in 2007. In order to Complexity: Genetic algorithms are a complex optimization
maximise system performance, lower energy consumption, method that require expertise in mathematics and computer
and increase system efficiency,[8] this research investigates science to implement. This can be a challenge for water
the application of genetic algorithms in water utilities that may not have the necessary technical resources.
distribution systems. Data limitations: Genetic algorithms rely on accurate and up-
Based on the GIS-based Water Supply Operation System to-date data to operate effectively. If the data is incomplete or
project, the Xi'an Water Supply Company completed the inaccurate, the optimization results may be flawed.
architecture and data structure of the pipe network subsystem Resource limitations: Implementing genetic algorithms can
before studying the relevant algorithms. The project examined require significant investments in hardware, software, and
the operation of the pipe line network. Drawbacks of current personnel. This can be a barrier for smaller water utilities or
system are those operating on tight budgets.
Complexity: Programming and computer science knowledge Limited scope: Genetic algorithms are most effective when
are need to implement binary search trees. Water utilities that used to optimize specific tasks or processes within a water
do not have the required technical resources may find this to distribution system. However, they may not be the best tool
be a difficulty [3]. for addressing larger-scale issues or making broader
Restricted in scope: The best application of binary search trees operational improvements.
in a water distribution system is to streamline particular Maintenance: As with any software or tool, genetic algorithms
operations or procedures. These might not, however, be the require ongoing maintenance and updates to remain effective.
most effective means of tackling more significant problems or This can be a challenge for water utilities that may have
enhancing overall operating efficiency. limited resources and competing priorities.
Data restrictions: For successful operation, binary search trees It's also worth noting that the publication of the use of genetic
require correct and current data. The optimization outcomes algorithms to optimize water distribution system operations in
might be faulty if the data is unreliable or wrong [4]. 2007 means that the technology is over a decade old and may
Maintenance: As with any software or tool, binary search trees not incorporate more recent developments in
require ongoing maintenance and updates to remain effective. optimization methods.
This can be a challenge for water utilities that may have While GIS-based Water Supply Operation System projects [7]
limited resources and competing priorities. will provide numerous benefits, there are potential drawbacks
Cost: Implementing binary search trees can require significant viz..
investments in hardware, software, and personnel. This can be Complexity: GIS-based systems can be complex to develop
a barrier for smaller water utilities or those operating and implement, requiring technical expertise in GIS software,
on tight budgets. While integrated water resource data management, and water supply operations.
management (IWRM) can help increase the dependability of Data limitations: The accuracy and completeness of the data
the water supply, there are some potential drawbacks to used in a GIS-based system are critical to its effectiveness. If
consider: the data is incomplete or inaccurate, the system's outputs may
Complexity: IWRM requires collaboration and coordination be flawed.
among multiple stakeholders, including government agencies, Resource limitations: Implementing a GIS-based system can
water utilities, and local communities. This can be a complex require significant investments in hardware, software, and
process, especially in regions where there are competing personnel. This can be a barrier for smaller water utilities or
interests and limited resources. those operating on tight budgets.
Political barriers: IWRM often requires policy changes and Maintenance: As with any software or tool, a GIS-based
regulatory reforms, which can be difficult to implement due to system requires ongoing maintenance and updates to remain
political barriers or resistance from stakeholders who may be effective. This can be a challenge for water utilities that may
impacted by these changes [5]. have limited resources and competing priorities.
Resource limitations: IWRM can require significant User adoption: The effectiveness of a GIS-based system
investments in infrastructure, data collection and depends on user adoption and engagement. If users are not
management, and stakeholder engagement. This can be a adequately trained or do not see the value of the system, they
challenge for regions with limited resources or competing may not use it effectively, which can limit its impact.
priorities. Regarding the completion of the architecture and data
Uncertainty: IWRM often involves making decisions based on structure of the pipe network subsystem by Xi'an Water
uncertain or incomplete information. This can be a challenge Supply Company, it is difficult to determine any specific
when planning for long-term water supply dependability, as drawbacks without more information about the project and its
water availability and demand can be impacted by factors such implementation. However, some potential issues to consider
as climate change and population growth. include the accuracy and completeness of the data used to

14th ICCCNT IEEE Conference


Authorized licensed use limited to: BMS Institute of Technology. Downloaded on November 24,2023 at 11:02:11 UTC from IEEE Xplore. Restrictions apply.
July 6-8, 2023
IIT - Delhi, Delhi, India
IEEE - 56998

develop the subsystem and the effectiveness of the subsystem transported to different parts of the city (i.e., Sub1, Sub2,
in addressing the water supply company's operational needs. Sub3, Sub4 or even Sub5, Sub6 as the city grows).
Considering Sub1, the supply lines can be branched into
Existing methodologies focuses primarily on the use of binary Sub1Sub1, Sub1Sub2, Sub1Sub3, Sub1Sub4, Sub1Sub5,
search trees for organizing and managing water supply Sub1Sub6 and so on.
pipelines. However, it does not address other important Even for Sub2, Sub3, Sub4, Sub5, Sub6, the supply lines can
aspects of water supply and management, such as water be branched further.
treatment processes, water quality monitoring, demand Considering Sub1Sub1, the supply lines can be branched into
forecasting, or infrastructure maintenance. Moreover, no Sub1Sub1 Sub1, Sub1 Sub1Sub2, Sub1 Sub1Sub3, Sub1
researchers made an effort in developing Water Supply and Sub1Sub4, Sub1 Sub1Sub5, Sub1 Sub1Sub6 and so on.
Management Using Binary Trees with IOT devices. Due to Considering the Bangalore city as an example. The city
lack of IoT device authors fail to collect information on the receives water supply from Kaveri River flowing from
intended area, such as the location of the centre where water Mysore and local lakes also provide water supply to the entire
tanks will be built. In this paper we attempt to develop water city. The water from river Kaveri is considered as main and
supply management using binary search tree with IOT then the water supply branches as Sub1, Sub2, Sub3, Sub4 for
devices. Here, device will collect information on the intended North, South, East, West. In the Northern region, the Sub1
area, such as the location of the centre where water tanks will further branches to form Sub1Sub1 and Sub1Sub2.
be built. Our proposed system uses tree data structure, binary
search algorithm and IOT devices to detect leakages in the
pipeline.

III. PROPOSED METHODOLOGY


Consider a scenario, in towns, when the river water flows
through the city or a town. The place nearest to the river
becomes the main. Then, the river flows branching Sub1,
Sub2. The Sub1 further branches to form Sub1Sub1,
Sub1Sub2. The Sub1Sub1, further branches to form
Sub1Sub1Sub1, Sub1Sub1Sub2. The Sub1Sub2, further
branches to form Sub1Sub2Sub1, Sub1Sub2Sub2.
The Sub2 further branches to form Sub2Sub1, Sub2Sub2. The
Sub2Sub1, further branches to form Sub2Sub1Sub1,
Sub2Sub1Sub2. The Sub2Sub2, further branches to form
Sub2Sub2Sub1, Sub2Sub2Sub2. This scenario is discussed in
the figure 1.

Figure 2: City Layout

Figure 1: Village layout

We know that the river water flows through the city and
provides water supply to the certain parts of the city. Thus,
those parts of the city receive ample amount of water supply.
Due to this, the population density over those areas is higher. Figure 3: Example of a City (Bangalore)
To reduce the concentration of water flow through only few
places of the city, the municipal corporation of the city must The Sub1Sub1, then branches to form Sub1Sub1Sub1 and
store the free-flowing water from the rivers or the lakes in Sub1Sub1Sub2. The Sub1Sub2, then branches to form
dams and control the water flow. Sub1Sub2Sub1 and Sub1Sub2Sub2.
The stored water from the dam must be transported to the main By this process, the whole city can be divided into sub
overhead tank of the city. Then, the water would be branches called as ‘Sub’. The Sub branch of sub branch would

14th ICCCNT IEEE Conference


Authorized licensed use limited to: BMS Institute of Technology. Downloaded on November 24,2023 at 11:02:11 UTC from IEEE Xplore. Restrictions apply.
July 6-8, 2023
IIT - Delhi, Delhi, India
IEEE - 56998

constitute the whole city. By this process, water would reach


to nook and corner of the city, the new and far-away location
from the main would not be left alone.
Along with this functionality of binary trees, Binary Search
Tree (BST) can be used to notify the Sub branch of the city
which would not receive water supply.
Considering the above example, if the flow of water is
distorted at Sub1, then the Whole sub-branch of Sub1 would
be affected.
If the water supply is distorted at Sub1Sub1, then
Sub1Sub1Sub1,Sub1Sub1Sub2,Sub1Sub1Sub1Sub1,Sub1Su
b1Sub1Sub2,Sub1Sub1Sub2Sub1, Sub1Sub1Sub2ub2 would
not receive water supply and thus, the residential and
commercial places would be notified about the distortion in
the water supply.
This way of identification and notifying can be practiced in
Sub2, Sub3, Sub4, Sub5, Sub6 and its other branches.

A. Algorithm to detect water connections


Figure 4: Flowchart for the proposed system
Step 1: Input the number of root pipes required.
Step 2: If root pipe is equal to Null or not connected it returns
the root pipe saying the pipe is not connected.
Step 3: Else if, check if the pipe required is connected, the pipe
is the data and location is the address component, returns root
pipe.
Step 4: Else if, check if pipe is a branching of the root pipe,
root pipe is the data and branched pipe is the address, returns
search function.
Step 5: Else it returns search function. Thus, it finds the
pipeline.
Step 6: The next condition requests us to enter the order in Figure 5: Output 1
which pipes are connected in matrix form with 1 for pipe
connected and 0 for not connected from the survey records.
Step 7: Using bfs(breadth first search) function we get to know
the tributaries of the main pipeline.
Step 8: Using dfs(depth first search) function we get to know
if the tributaries of the root pipe are connected to the main
pipe.
Step 9: Thus, these functions give the details of the pipeline
connections depending on the condition asked.
Pseudocode to detect water connections is discussed as
follows Figure 6: Output 2

START
If root pipe is connected-> THEN choose from the choice of
DFS and BFS
Enter the arrangement of pipes in matrix form from the survey
records
DFS> Enter the pipe connection in matrix form Figure 7: Output 3
The pipes, it is connected are from -to- pipes.
BFS->The pipes are connected if connected else the pipes are
not connected.
ELSE, the root pipe is not connected
END
The output of the proposed system as shown in Figure 5-8

Figure 8: Output 4

14th ICCCNT IEEE Conference


Authorized licensed use limited to: BMS Institute of Technology. Downloaded on November 24,2023 at 11:02:11 UTC from IEEE Xplore. Restrictions apply.
July 6-8, 2023
IIT - Delhi, Delhi, India
IEEE - 56998

A. Detection techniques We collect information on the They do not collect information on


intended area, such as the location the intended area, such as the
The IoT ecosystem consists of web-enabled smart devices that of the center where water tanks location of the center where water
collect, transmit, and respond to data collected from the will be built. tanks will be built.
environment using embedded systems such as processors, We use algorithm and IOT devices
They do not use algorithm and IOT
sensors, and communication hardware [9][10][11][12]. IoT devices to detect the problem and
to detect the problem and solve it.
solve it.
devices share collected sensor data by connecting to IoT We used both technology and data They used only technology not the
gateways or other edge devices. There the data is either sent structure data structure
to the cloud for analysis or analysed locally. These devices
may communicate with other related devices and respond to
information received from each other. Devices do most of the IV CONCLUSION
work without human intervention, but humans can interact Current approaches for organising and monitoring water
with them. For example, setup, instructions, supply pipelines, mostly use binary search trees. However, it
access to data, etc. does not cover other crucial components of water management
IoT devices are linked to machines and digital mechanics. and supply, such as such as water treatment processes, water
Things on the Internet of Things can be people with heart quality monitoring, demand forecasting, or infrastructure
monitor implants, farm animals with biochip transponders, maintenance
cars with built-in sensors that warn drivers when tire pressure This article employs the Binary Search Tree to find any
is too low, or any other natural or human thing. There is a problems in the pipelines. We have picked a few examples of
possibility. An object that can be assigned an Internet Protocol situations where water is not delivering to every location and
(IP) address and that can send data over a network. used binary search trees to fix these issues. We can connect
IoT devices are the nonstandard computing devices that water supply to a whole city or town. When a pipe fails, water
connect wirelessly source to a network and have the ability to will leak from the household connection and immediately spill
transmit data, such as the many devices on the internet of onto the ground. This is a problem with water connection and
things (IoT). IoT device can be communicate usable senor supply that can be promptly found and remedied.
data to users and other intended parties. In this regard, it is important to pay attention to and address
IoT functions in day-to-day life usage are like consumer any leaks coming from a household or other connection as
connected devices include smart TVs, smart speakers, toys, soon as possible. There are benefits and drawbacks to this
wearables and small appliances. approach, but what our suggestion gives to society is
In case smart home, devices are designed to sense and respond something novel and resource-efficient.
to a person’s presence.
We used IoT devices in our article. Because this type devices
are used to monitor an assembly line or manufacturing REFERENCES
process. In case if any problem occurs, the system might be [1]. Maharashtra Jeevan Pradhikaran (MJP), CEPT University (2012).
able to a notification to service technician to inform them what Basics of Water Supply System
is wrong and what parts they should be fixed. https://www.pas.org.in/Portal/document/ResourcesFiles/pdfs/Module
The IoT devices which we are using in our project have the _1%20Basics%20of%20water%20supply%20system.pdf.
ability to detect the leakages in the pipelines running or [2]. H Gaur, Geeks for Geeks.
branching to different parts of the country enabling a smoot Water Connection Problem
flow of water. Apart from detecting the leakages it also https://www.geeksforgeeks.org/water-connection-problem
notifies about the functioning of pipelines and thus the water [3]. Ramotsoela, D. T., Hancke, G. P., & Abu-Mahfouz, A. M. (2019).
Attack detection in water distribution systems using machine learning.
flow. The intensity of water flow, water holding capacity, Human-centric Computing and Information Sciences, 9, [13].
detection of any cracks and many such issues thus improving https://doi.org/10.1186/s13673-019-0175-8.
the management and structure of waterflow. [4]. Sangroula, Uchit, Kuk-Heon Han, Kang-Min Koo, Kapil Gnawali, and
The use of IoT devices in a better manner gives us an upper Kyung-Taek Yum. 2022.
hand over other methods as it is about making use of the "Optimization of Water Distribution Networks Using Genetic
Algorithm Based SOP–WDN Program" Water 14, no. 6: 851.
available technology and its resources. The concept of binary https://doi.org/10.3390/w14060851
search tree provides an organised pathway for waterflow [5]. Importance of a safe water supply system
through pipelines whether it is branching into different nodes http://ecoursesonline.iasri.res.in/mod/page/view.php?id=2571
or smaller pipelines. One disadvantage might be that this [6]. Sangroula, Uchit, Kuk-Heon Han, Kang-Min Koo, Kapil Gnawali, and
method and installation proves to be costly worth some Kyung-Taek Yum. 2022.
thousands of crores and huge amount of labour which makes "Optimization of Water Distribution Networks Using Genetic
this method much complicated and strenuous as compared to Algorithm Based SOP–WDN Program" Water 14, no. 6: 851.
https://doi.org/10.3390/w14060851
others. [7]. Gu Chen, Shen Weizhong,
Thoughts on Promoting the Management of Secondary Water Supply
B. Defenses Techniques Facilities in Shanghai Residential Buildings, Communication &
Comparison of proposed method with existing methods is Shipping 22 (6) (2008) 26–28
https://dl.acm.org/doi/abs/10.1016/j.procs.2019.06.031
discussed in the following table 1.
Table 1: Difference between proposed method and the existing [8]. Jenny, Hubert, Wang, Yihong, Garcia Alonso, Eduardo
Minguez, Roberto
method
Using Artificial Intelligence for Smart Water Management Systems
Proposed Method Existing Method Publication Stock No. BRF200191-2 DOI:
We have used binary search tree http://dx.doi.org/10.22617/BRF200191-2
Binary search tree and IOT devices
and IOT devices to solve this
are not used. [9]. Li, YH., Chen, PY., Lo, WH. et al.
problem.

14th ICCCNT IEEE Conference


Authorized licensed use limited to: BMS Institute of Technology. Downloaded on November 24,2023 at 11:02:11 UTC from IEEE Xplore. Restrictions apply.
July 6-8, 2023
IIT - Delhi, Delhi, India
IEEE - 56998

Integrated water resources system dynamics modeling and indicators


for sustainable rural community. Paddy Water Environment.13, 29–41
(2015).
https://doi.org/10.1007/s10333-013-0404-0
[10]. Pandey, Sujeet & Mathur, Yogesh. (2013).
Optimization of water distribution network using particle swarm
optimization. International Journal of Applied Engineering Research.
8. 80-91.
https://www.researchgate.net/publication/288197894_Optimization_o
f_water_distribution_network_using_particle_swarm_optimization
[11]. Sangroula, Uchit, Kuk-Heon Han, Kang-Min Koo, Kapil Gnawali,
and Kyung-Taek Yum. 2022.
"Optimization of Water Distribution Networks Using Genetic
Algorithm Based SOP–WDN Program" Water 14, no. 6: 851.
https://doi.org/10.3390/w14060851.
[12]. W. Kunling and L. Li,
"Research of GIS-based Water Supply Pipe Network System," 2011
Fourth International Conference on Intelligent Computation
Technology and Automation, Shenzhen, China, 2011, pp. 1156-1158,
doi: 10.1109/ICICTA.2011.575.
https://ieeexplore.ieee.org/document/5751100
[13] Panwar, Manoj & Antil, Mr. (2015).
Issues, Challenges and Prospects of Water Supply in Urban India.
IOSR Journal Of Humanities And Social Science (IOSR-JHSS). 20.
2279-837. 10.9790/0837-20526873.
https://www.researchgate.net/publication/280310011_Issues_Challe
nges_and_Prospects_of_Water_Supply_in_Urban_India
[14] Yukai Wang, Xiaoli Liu, Bo Pang, Yanfei Li, Zhiguo Cao.
Capacity characteristics of the underground water reservoir of an open-
pit coalmine: a case study in Baorixile. Water Supply 1 March 2023; 23
(3): 1010–1025.
doi: https://doi.org/10.2166/ws.2023.036

14th ICCCNT IEEE Conference


Authorized licensed use limited to: BMS Institute of Technology. Downloaded on November 24,2023 at 11:02:11 UTC from IEEE Xplore. Restrictions apply.
July 6-8, 2023
View publication stats
IIT - Delhi, Delhi, India

You might also like