Introduction

The short transmission distance of multifunction sensors in computer electronics and wireless communication triggers the development of low power and cost, multi-functional sensor nodes. Sensor nodes make possible environment sensing in conjunction with data processing. Like temperature, humidity, and volatile compound detection, with various instrumentations of sensors, let monitoring of different environments exist. The sensors are capable of handling networks with exchange data with external users and other sensor systems. Wireless networking, embedded systems, distributed processing, microelectromechanical systems, and wireless sensor applications are key features of this technology. Advances and innovations in sensor technology and the resulting large transformations have contributed greatly to wireless sensor networks. In the context of both business and our daily life, the sensors support and improve working performance. The sensor network device is far from the real-time situation, and a large amount of data can be obtained and processed. Sensory awareness is used by these sensors. The sensor's network and algorithm must have the ability to organize themselves.

Neighborhood nodes (vertices) are similar to each other, and nodes are used for continuous sensing. Unlike other sensors, multi-chip sensor networks are accustomed for low power consumption. The sensor network’s each node provides the topological information. An interconnection network can be used for parallel computing. Shortest path algorithms are used for messages from any source to any destination. In most cases, BA is used for a network with wide-ranging secure nodes.

A set whose components have membership degrees called the fuzzy set (FS) [1] presented in 1965, which manages real-time issues where there is typically some kind of ambiguity in details. A 2-decade later, Atanassov in 1986 [2] broadened this definition to the intuitionistic fuzzy set (IFS), which is defined by the set's characteristic functions in terms of membership (MS) and non-membership (NMS) functions.

The notion of fuzzy numbers (FNs) has been introduced by Zadeh [3]. The concept of FNs by different circumstances was studied by Mizumoto and Tanaka [4], Dubois and Prade [5], and Nahmias [6], Mp et al. [7], among others. Burillo et al. [8] defined intuitionistic fuzzy numbers (IFNs) as an extension in line with the novel structure of fuzzy numbers. The arithmetic structures, and their properties were studied by Chen and Tan [9], Hong and Choi [10] and Shu-Xi [11]. The functioning laws and algorithms for intuitionist triangular FNs and the intuitionist fuzzy setting that explains fault-tree analysis were suggested by Shu et al. [11]. To signify the membership function, Zhang and Liu [12] used the concept of triangular FN Functions, which put forward them to bring the concept of triangular IFN functions. Wang and Zhang [13] proposed the concepts of intuitionistic trapezoidal fuzzy number (ITFN) and interval-valued intuitionistic trapezoidal fuzzy number. Some aggregation operators on ITFN have been identified by Jian-qiang and Zhong [14]. PSO optimization of interval type-2 fuzzy controllers for FPGA applications was designed, simulated, and implemented by Yazmin Maldonado [15]. Purcaru et al. [16] developed an algorithm for path planning and the proposed algorithm has been used in a practical problem such as to calculate an ideal route for a robot that moves from an initial node to a destination node while eliminating all established environmental barriers.

Bellman [17], Dijkstra [18], Warshall [19], and Floyd [20] proposed some typical algorithms for solving SPPs. The solution for fuzzy shortest path problems (FSPP) can be found using the Bellman dynamic programming (BDP) method and a multiple objective linear programming problem was proposed by De and Bhincher [5] to consider the weights of the edges as uncertain or fuzzy for a network [21]. Many scientists have solved the SPP under environments like fuzzy and intuitionist fuzzy [22,23,24]. The Bellman algorithm definition has been used to solve SPP in a fuzzy network [25].

In different fields, Atanassov’s IFS principle has been successfully applied. However, there are instances where a portion of abstinence linking two extreme conditions is often to be emphasized (Alcantud and Laruelle [26] for real reasons in terms of voting). It is normal to include an additional degree of freedom to the IFS concept to achieve this goal. A generalization of IFSs of this kind, called a picture fuzzy set (PFS), was introduced and studied by Cuong [27,28,29]. Considerably, PFS-related models are helpful when it is appropriate to integrate the view of professionals giving ambiguous responses in the manner: yes, abstain, no, and rejection. There has been some progress in the theory of PFS so far. Singh [30] tested the PFS correlation coefficients and used them in the study of clustering. Son and Thong [31] presented a PF clustering-based new hybrid forecast approach. Thong and Son [32] explored multivariable fuzzy forecasting using PF clustering and the PF rule interpolation technique. Akram and Zafer [33] contributed fascinatingly to readers. Akram et al. [34] presented and tested the Dijkstra algorithm using a TPFN of a picture fuzzy environmental network. Mani et al. [35] introduced the hesitancy fuzzy digraph and studied its operations with an example. This motivated us to work on this.

The Bellman dynamic programming (BDP), a mathematical formulation for unveiling the weighted aggregated TPFN of the shortest path or the minimum cost path, has been built in the picture Fuzzy setting in this article. Acting backwards from the terminal vertex, we can conveniently create the shortest path by going to the predecessor from whom the new vertex received its permanent label. Many writers have solved the shortest path problem with fuzzy arc lengths using numerous approaches. However, it appears that no research has been done on SPP using data in the form of TPFNs, a more abstract form of fuzzy numbers. This sums up the paper's main contribution. So far, there is no evidence of the suggested new technique for solving PFSPP in the literature. This motivated us to write this article and the properties used here have never been used to solve PFSPP before. This paper's key points are as follows.

This paper extends the conventional Bellman–Ford algorithm in line with the prolific researches mentioned above for calculating the minimum cost of (PFSPP) the picture fuzzy SPP. In a network with picture fuzzy arc lengths, the PFSPP aims to provide decision-makers with the length of the PFSP and the shortest path. The cost parameters are presumed to be TPFNs for transiting each arc. Based on Bellman–Ford's methods, a pseudo code for this problem is proposed. Several operating regulations and anticipated TPFN values and also score and accuracy functions are defined for comparing two TPFNs. Finally, a numerical illustration is given to explain the approach adopted and to demonstrate its capability and efficiency. Furthermore, our outcomes are explored concerning current models.

The summary of this paper is as follows. In the next section, preliminary and basic definitions are given. The purpose of the following section is to focus as an analysis of image fuzzy numbers on a few of the ideas and theories. We study their triangular and trapezoidal formulas, their methods, and the methodologies of comparison. The next section formally outlines the issue we are investigating. We introduce the Bellman–Ford algorithm and the same pseudo code. A numerical example is furnished, where our proposed BA is applied in the following section. In the next section, the advantages and the limitations of the proposed algorithm are given. The last section concludes the paper.

Preliminaries

In this section, mathematical definitions that form the basis of this research are included.

Definition [27]

Let P = {ζ, (mP(ζ), aP(ζ), nP(ζ))| ζ ∈ U}, in U be a picture fuzzy set, where mP(ζ) ∈ [0,1] is the positive membership degree, aP(ζ) ∈ [0,1] is the abstinence and nP(ζ) ∈ [0,1] is the negative membership degree of the element ζ in U along with the condition 0 ≤ mP(ζ) + aP(ζ) + nP(ζ) ≤ 1 and rP(ζ) = 1 − [mP(ζ) + aP(ζ) + nP(ζ)] is called the refusal membership value.

Definition [34]

Let G* = (P, E) be a graph, where P = (mP(ζ), aP(ζ), nP(ζ)) is a PFS on P and E = (mE(ζ), aE(ζ), nE(ζ)) is a PFS on E ⊆ V × V ∃, ∀ arc ζ1ζ2 ∈ E. The graph G = (A, B) is said to be a picture fuzzy graph (PFG) on G* such that mE(ζ1,ζ2) ≤ mP(ζ1) ∧ mP(ζ2), aE(ζ1,ζ2) ≤ aP(ζ1) ∧ aP(ζ2), nE(ζ1,ζ2) ≤ nP(ζ1) ∨ nP(ζ2).

Definition [36]

The ordered pair G = (P,E) is said to be a picture fuzzy digraph (or) directed graph (PFDG), if P = (V, mi, ai, ni) is a PFS on V, where V is a finite picture fuzzy non-empty set and E = (V × V, mi,j, ai,j, ni,j) is a picture fuzzy relation on V. Here mi: V → [0,1], denotes the positive, ai: V → [0,1], denotes the abstinence and ni: V → [0,1], denotes the negative membership degree for every element of the vertex vi in V along with the constraint 0 ≤ mi(vi) + ai(vi) + ni(vi) ≤ 1. And E ⊆ V × V where mi,j: V × V → [0,1] denotes the positive, ai,j: V × V → [0,1], denotes the abstinence and ni,j: V × V → [0,1], denotes the negative membership degree for every element of the edge eij = (vi,vj) in V and with the constraint 0 ≤ mi,j + ai,j + ni,j ≤ 1. mi,j ≤ mi(vi) ∧ mj(vj), ∃ ai,j ≤ ai(vi) ∧ aj(vj), ni,j ≤ ni(vi) ∨ nj(vj).

Note: PFG has a symmetric relation on V but a PFDG do not have a symmetric relation on V.

Definition [34]

A picture fuzzy number n is defined in a PFS, where n ∈ R, as n = {(ξ, mn(ξ), an(ξ), nn(ξ)): ξ ∈ R}, where

$$ \begin{gathered} m\left( \xi \right) = \left\{ \begin{gathered} f_{n}^{l} \left( \xi \right),\,{\text{for}}\,p_{1} \le \xi < q \hfill \\ \alpha _{n} ,\,\,{\text{for}}\,q \le \xi \le r \hfill \\ f_{n}^{u} \left( \xi \right),\,\,{\text{for}}\,\,\,r \le \xi < s_{1} \hfill \\ 0,\;{\text{other}}{\text{wise}} \hfill \\ \end{gathered} \right., \hfill \\ a\left( \xi \right) = \left\{ \begin{gathered} g_{n}^{l} \left( \xi \right),\,{\text{for}}\,p_{2} \le \xi < q \hfill \\ \beta _{n} ,\,\,{\text{for}}\,q \le \xi \le r \hfill \\ g_{n}^{u} \left( \xi \right),\,\,{\text{for}}\,\,\,r \le \xi < s_{2} \hfill \\ 0,\;{\text{other}}{\text{wise}} \hfill \\ \end{gathered} \right., \hfill \\ n\left( \xi \right) = \left\{ \begin{gathered} h_{n}^{l} \left( \xi \right),\,{\text{for}}\,p_{3} \le \xi < q \hfill \\ \gamma _{n} ,\,\,{\text{for}}\,q \le \xi \le r \hfill \\ h_{n}^{u} \left( \xi \right),\,\,{\text{for}}\,\,\,r \le \xi < s_{3} \hfill \\ 0,\;{\text{other}}{\text{wise}} \hfill \\ \end{gathered} \right.. \hfill \\ \end{gathered} $$

Definition [34]

A trapezoidal picture fuzzy number (TPFN) ‘tn’ is defined in a PFS, where n ∈ R, the set of all real numbers as tn = {([p1,q,r,s1],αn), = {([p2,q,r,s2],βn), = {([p3,q,r,s3],γn)}, where A PFN defined in Definition 2.4 is of trapezoidal PFN if ∀ ξ, the 3 components m, a and n forms a trapezoidal shape as shown in Fig. 1. In formal terms, where

$$ \begin{gathered} f_{n}^{l} \left( \xi \right) = \frac{{\xi - p_{1} }}{{q - p_{1} }}\alpha _{n}^{q} ,\;f_{n}^{u} \left( \xi \right) = \frac{{s_{1} - \xi }}{{s_{1} - r}}\alpha _{n} ,\; \hfill \\ g_{n}^{l} \left( \xi \right) = \frac{{q - \xi + \beta _{n} \left( {\xi - p_{2} } \right)}}{{q - p_{2} }},\;g_{n}^{u} \left( \xi \right) = \frac{{\xi - r + \beta _{n} \left( {s_{2} - \xi } \right)}}{{s_{2} - r}}, \hfill \\ h_{n}^{l} \left( \xi \right) = \frac{{q - \xi + \gamma _{n} \left( {\xi - p_{3} } \right)}}{{q - p_{3} }},\;h_{n}^{u} \left( \xi \right) = \frac{{\xi - r + \gamma _{n} \left( {s_{3} - \xi } \right)}}{{s_{3} - r}}. \hfill \\ \end{gathered} $$

with the constraints \(0 \le \alpha _{n} ,\beta _{n} ,\gamma _{n} \le 1\) and \(\alpha _{n} + \beta _{n} + \gamma _{n} \le 1.\)

Fig. 1
figure 1

Trapezoidal picture fuzzy number

Definition [27]

For the two PFNs P1 = (m1,a1,n1) and P2 = (m2,a2,n2), the operations for picture fuzzy numbers (PFNs) are given below:

  1. 1.

    P1 ⊕ P2 = (m1 + m2 − m1m2, a1a2, n1n2).

  2. 2.

    P1 ⊗ P2 = (m1m2, a1 + a2 − a1a2, n1 + n2 − n1n2).

  3. 3.

    α P1 = ((1 − (1 − m1))α, a1α, n1α).

  4. 4.

    P1α = (m1α, a1α,(1 − (1 − n1))α).

Definition [34]

The score function S(P) and the accuracy function A(P) for a TPFN P = ([p,q,r,s], m,a,n) are defined as follows:

  1. 1.

    E(P) = {1/16[(p + q + r + s) × (m − a − n)]}.

  2. 2.

    S(P) = E(P) × (m − a − n), where S(P) ∈ [− 1,1].

  3. 3.

    A(P) = E(P) × (m + a + n), where E(P) ∈ [0,1].

Comparison of two TPFNs P = ([p1,q1,r1,s1], m1,a1,n1) and Q = ([p2,q2,r2,s2], m2,a2,n2) is done as follows:

  1. 1.

    if S(P) > S(Q), then P > Q,

  2. 2.

    if S(P) = S(Q), then,

    1. a.

      if A(P) > A(Q), then P > Q,

    2. b.

      if A(P) = A(Q), then P = Q.

Network terminology

Here, a new algorithmic method to solve PFSPP is presented.

Let us assume that n number of nodes with the origin node (ON = node 1) and end node (EN = node n) exist. The edge set is the set that it connects any two vertices by an arrow V = {1, 2, 3, …, n}. The picture fuzzy arc length with the nodes α and β is denoted by dαβ and MN(α) = { all nodes having the connection with the node α}. For every α in V − {1}, it is assumed that there is at least one direction P1α in the digraph. The PFN for the edge (α,β) is defined as \(d\left( P \right) = \sum {d_{{\alpha \beta }} }\) the length needed to move over (α,β) from α picture fuzzy distance to β picture fuzzy distance along the line.

The SP problem's key goal is to find the least expensive path from ON “1” to EN “n”. The unclear parameters of the SP problem under consideration are described in this work using triangular picture fuzzy numbers. As a consequence, the resulting problem is known as a picture fuzzy SP (PFSP) problem.

Bellman dynamic programming (BDP): mathematical formulation

Let us consider a picture fuzzy directed graph G = (V, E) from ON ‘1’ and the EN ‘n’, in which there are no cycles. The BDP system is used to determine the shortest path by the forward pass calculation process. The BDP system is defined as follows:

$$ g\left( \alpha \right) = \left\{ \begin{gathered} \mathop {\min }\limits_{{\alpha < \beta }} \left[ {g\left( \alpha \right) + d_{{\alpha \beta }} } \right],{\text{otherwise}} \hfill \\ 0,\;{\text{if}}\,\alpha = 1 \hfill \\ \end{gathered} \right., $$
(1)

where dαβ is the directed edge Eαβs weight and g(α) is the arc length of SP from the ON 1 to the node α.

figure a

In the previous section, a numerical illustration is furnished to show the conciseness of the proposed BA technique.

Numerical illustration

This section is based on an adaptable numerical problem to illustrate the possible implementation of the algorithm proposed.

Example

Let us consider a picture fuzzy directed network whose edge weights are expressed as a TPFN with ON = node 1 and EN = node 8 (Fig. 2). The picture fuzzy arc distance is represented in Table 1. Here we have to determine the shortest distance from ON to EN.

Fig. 2
figure 2

Picture fuzzy network digraph G

Table 1 Arc lengths (in terms of TPFNs) of the network in Fig. 1

Table 2 provides the defuzzification of values of each arc weight.

Table 2 Defuzzified arc lengths using score functions

Using the suggested algorithm (BA) and the Eq. (1), in Sect. 4, the SP from ON and EN is computed as follows:

$$ g\left( 1 \right) = 0. $$
$$ g\left( 2 \right) = \mathop {\min }\limits_{{\alpha < 2}} \left[ {g\left( 1 \right) + 0.5175} \right] = 0 + 0.5175 = 0.5175. $$
$$ g\left( 3 \right) = \mathop {\min }\limits_{{\alpha < 3}} \left[ {g\left( 1 \right) + 0.544688,g\left( 2 \right) - 0.84} \right] = \min \left[ {0 + 0.544688,0.5175 - 0.84} \right] = - 0.3225. $$
$$ g\left( 4 \right) = \mathop {\min }\limits_{{\alpha < 4}} \left[ {g\left( 3 \right) + 0.84} \right] = - 0.3225 + 0.84 = 0.5175. $$
$$ \begin{gathered} g\left( 5 \right) = \mathop {\min }\limits_{{\alpha < 5}} \left[ {g\left( 2 \right) + 0.6325,g\left( 3 \right) + 0.492188,g\left( 4 \right) + 0.7425} \right] \hfill \\ = \min \left[ {0.5175 + 0.6325, - 0.3225 + 0.492188,0.5175 + 0.7425} \right] = \min \left[ {1.15,0.169688,1.26} \right] = 0.169688. \hfill \\ \end{gathered} $$
$$ g\left( 6 \right) = \mathop {\min }\limits_{{\alpha < 6}} \left[ {g\left( 5 \right) + 0.406875} \right] = 0.169688 + 0.406875 = 0.576563. $$
$$ \begin{gathered} g\left( 7 \right) = \mathop {\min }\limits_{{\alpha < 7}} \left[ {g\left( 4 \right) + 0.840938,g\left( 5 \right) - 0.74,g\left( 6 \right) + 0.28875} \right] \hfill \\ = \min \left[ {0.5175 + 0.840938,0.169688 - 0.74,0.576563 + 0.28875} \right] \hfill \\ = \min \left[ {1.358438, - 0.570312,0.86531} \right] = - 0.570312. \hfill \\ \end{gathered} $$
$$ \begin{gathered} g\left( 8 \right) = \mathop {\min }\limits_{{\alpha < 8}} \left[ {g\left( 5 \right) + 0.66,g\left( 6 \right) + 0.73125,g\left( 7 \right) + 0.970313} \right] \hfill \\ = \min \left[ {0.169688 + 0.66,0.576563 + 0.73125, - 0.570312 + 0.970313} \right] \hfill \\ = \min \left[ {0.829668,1.307813,0.400001} \right] = 0.400001. \hfill \\ \end{gathered} $$

The shortest path (Fig. 3) and the shortest distance for the proposed network from the ON to EN are 1 → 2 → 3 → 5 → 7 → 8 and 0.400001, respectively, via BA.

Fig. 3
figure 3

Shortest path of the picture fuzzy network digraph G

Advantages and limitations of the proposed algorithm

Advantages

  • The BA operates on PFDGs with negative weight arc lengths, whereas these negative values cannot be dealt with the Dijkstra algorithm [34].

  • This method can be readily put in and extended to other picture fuzzy networks with the arc weight as:

  • bipolar picture fuzzy numbers;

  • cubic picture fuzzy numbers;

  • interval bipolar picture fuzzy numbers;

  • single-valued picture fuzzy numbers;

  • trapezoidal picture fuzzy numbers;

  • triangular picture fuzzy numbers;

  • pentagonal fuzzy numbers and so on.

Limitations

  • When there is a network update, a slow response will be observed as this shift will propagate node-by-node.

  • If the network contains routing loops, then there exists a node failure.

Comparison table

Table 3 shows the difference of SPP in fuzzy environment, IF environment and PF environment.

Table 3 Comparison analysis

Conclusion

In this research, we have defined the PFSP where edge weights are described by TPFNs and the value of using TPFNs in PFSP is presented. The classical BA is updated by integrating the uncertainty between the origin and end nodes using TPFNs for PFSP. The main objective of this work is to define an algorithm for PFSP using TPFNS as edge weight in the picture fuzzy setting. More simply, the Bellman–Ford Algorithm has been effectively applied under the PF environment for the shortest path problem under uncertainty, and particularly, in this contribution, we have designed the SPP through the Bellman Algorithm for a network with TPFNs. We have used a basic numerical example to demonstrate the productivity of our proposed algorithm and to show that the proposed algorithm for real-life problems is very efficient, practical, and can be easily integrated with the software. The algorithms and techniques used in this study have superior advantages compared to their limitations. We believe that this study will be used in many and various other network and routing problems thanks to PF environment’s power to express richer details and with the given efficient algorithm. Therefore, as future directions, the proposed algorithm can be considered for a substantially large factual SPP and our proposed algorithm to be compared with the current algorithm in terms of computational time, optimality, performance, and other aspects using software tools.