Open Access

Application of Dynamic Programming Algorithms to Accounting Information Management

  
Sep 22, 2025

Cite
Download Cover

Introduction

Accounting information is an indispensable part of modern enterprise management, which is an important basis for enterprise decision-making, risk management, cost control and other aspects [1]. With the development of the market economy and the intensification of market competition, the demand of enterprises for accounting information is becoming stronger and stronger, and the management of enterprise accounting information has become a field of great concern [2]. Enterprise accounting information refers to the financial information generated by enterprises in the process of accounting and financial management, including financial statements, account records, accounting vouchers and so on [34].

Enterprise accounting information management refers to the enterprise management of the generation, collection, processing, storage and use of accounting information, mainly including the following aspects, the establishment of an effective internal control system, to ensure that the generation, collection, processing and use of accounting information in accordance with the relevant laws and regulations, to prevent distortion of accounting information or errors, to improve the quality of accounting information, and to ensure the accuracy and completeness of accounting information, timeliness and reliability, and provide effective support for enterprise management and decision-making by providing timely and accurate financial information [58]. The goal of enterprise accounting information management is to improve the quality, reliability and timeliness of financial information to provide support for enterprise management and decision-making [9].

With the gradual integration of intelligence with the daily management work of enterprises, the enterprise accounting information management work has ushered in a new intelligent management stage [10]. Through the retrieval of information data, the identification of characteristic attributes, and the optimization of parameters, the efficiency of accounting information management can be improved [11]. Data fusion in the intelligent era is characterized by massive data retrieval, differential multi-source information identification, and efficient processing of complicated information, which can effectively boost the operation and development of enterprises. Relying on intelligent information management methods, it can help enterprises improve their operation and management level, transform their operation and development model, and optimize their accounting information management effectiveness [1213]. The quality of accounting information management is not only related to the normal operation of the enterprise and scientific decision-making, but also related to the coordinated operation ability between various departments, so the internal coordination mechanism of the enterprise should be improved [1415]. Accurately controlling the role and core position of accounting information in the operation of enterprises is one of the important ways to improve the efficiency of the daily work of enterprises, which can increase the actual benefits of enterprises in an orderly manner and boost the steady development of enterprises [1617].

In the intelligent era, enterprises rely on information technology data processing methods to improve the management capacity of enterprise accounting information, and visualize and manage all accounting information within the enterprise from the macro-whole, in order to improve the enterprise's control of project prediction, program decision-making and investment risk [1819]. Through the construction of the accounting information database, the effective information data is stored, which is conducive to subsequent data retrieval and application, and optimizes the decision-making of enterprise managers. Intelligent accounting information management process, with dynamic data storage, visualization information operation, all-round process control characteristics, so the study of enterprise accounting information management in the intelligent era is of great significance [2021].

In this study, the solution steps and applicable conditions of the dynamic programming algorithm are firstly elaborated, and the results of the adaptation of the accounting information management problem to the dynamic programming algorithm are obtained, which paves the way for the development of the later paper. Before carrying out the design of algorithm improvement, the complete knapsack problem was familiarized. The initial improvement of the algorithm was accomplished by using a binary algorithm based on the idea of solving a complete knapsack problem after transforming it into a 0/1 knapsack problem. Then the number of states involved in each state transition was reduced to complete the optimization of the time efficiency when managing accounting information, and superimposed to complete the ODP dynamic programming optimization. The algorithm with two rounds of optimization was applied to the practice of accounting information management, and the significant advantages of the improved algorithm in several aspects were verified through experiments.

Dynamic planning
Principles of Dynamic Planning

Dynamic planning, along with linear planning, nonlinear planning and goal planning, belongs to the same branch of operations research [22], but the obvious difference between dynamic planning and the other three methods lies in the fact that the latter is more applicable to static problems, and dynamic planning is more applicable to the situation where the system contains time variables or variables related to time and its current state is related to both past and future states, and this kind of system can be called a multi-stage decision optimization system. Stage Decision Optimization System, in which the problem to be solved is a multi-stage decision problem.

In solving the multi-stage decision-making problem [23], the optimal solution formulated at a certain moment is not the optimal solution of the whole system process, which needs to be realized in the whole time process by selecting the optimal solution at each time stage to achieve the optimization of the whole system. Of course, dynamic programming is also applicable conditions, that is, the problem to be solved must satisfy the optimization principle and no after-effects. The so-called non-sequitur means that if the state at a certain stage is known, the development of the process after this stage is only related to the state at this stage, and the state experienced before this stage is irrelevant.

Solution steps for dynamic programming

Establishing a dynamic planning model is the first step in solving accounting information management problems using kinetic planning algorithms [24], and its general steps are: determining the stage variables. According to the chronological or spatial characteristics, the whole process of all the problems is naturally divided into a number of interconnected phases, so that it is easy to solve the problem in the order of the phases afterwards. Generally, the stage variables are discrete variables, denoted by k = 1,2,3……n.

Determine the state variables and the set of allowed states. The state is the state of nature at the beginning of each stage, and the possible system states at each stage are identified, which are required to characterize the process without posteriority. Typically, the state variable for stage k is denoted by xk.

Determine the decision variables and the set of allowed decisions. Decisions are choices made after the state of one phase has been determined that have an impact on the state of the next phase. Generally use uk(xk) to denote the decision variable when stage k is in state xk.

Determine the state transfer relationship and write the state transfer equation, i.e., xk+1 = F(xk, uk); determine the value of the indicator for each decision in each state, i.e., Vkn(xk, uk, …, xn+1).

Write the indicator values for dynamic programming based on the principle of optimization.

Using the method of nested backward extrapolation, starting from the last stage, seek the optimization of each sub-process in turn, and finally obtain the optimization of the whole process, form the optimal strategy, and obtain the optimal index value, i.e. fk(xk) = optVkn.

Conditions for the applicability of dynamic programming algorithms

Optimization Principle. A property of this problem is used in practical cases, in transforming the original problem into a subproblem, the original problem is optimal when and only when the subproblem is optimal, this is the optimization principle. The optimization principle is not obvious, nor is it always true. For example, in the management of accounting information in an enterprise, if it is changed to seek the largest gain in single-digit words, the dynamic programming algorithm fails. If the optimization principle holds, the problem is said to have an optimal substructure.

Posteriority-free. Posteriority-free means that the value of each state depends only on the characteristic variable corresponding to the current state, and is independent of the operation used to reach that state. If no posteriority is not satisfied, then the expression of the state transfer equation is unreasonable, because the same state may correspond to many instances of different nature. In the management of accounting information in an enterprise, for a given total number of funds m, the number of operations n, and the corresponding costs Ci and revenues Ri of each operation, once the d value of a state is calculated, it will not be changed, and therefore it can be recorded in an array by using the memorized search method. If the value of d changes due to changes in the values of subsequent nodes, then not only is the memorized search implementation no longer applicable, but the recursive algorithm that solves in the opposite direction is also likely to be wrong.

Overlap of subproblems. In accounting information management, the dynamic programming algorithm improves the original recursive algorithm with exponential complexity into an algorithm with only polynomial time complexity, and the key lies in the reduction of repetitive and redundant operations, which is the fundamental purpose of applying the dynamic programming algorithm. The essence of the dynamic programming algorithm is an algorithmic technique that exchanges the amount of space storage for the speed of time operations. It is realized in the process, had to store the value of each state in the operation process, in order to facilitate the subsequent operation to call the value that has been derived, thus reducing the time complexity. Therefore, problems solved using dynamic programming algorithms generally have one distinguishing feature. Overlap of subproblems. If the subproblems are not overlapping, then this act of storing each state by the dynamic programming algorithm is unnecessary or even a waste of space resources. Although the overlap of sub-problems is not a necessary condition for the applicability of dynamic programming algorithms, but only if the sub-problems have overlap, the application of dynamic programming algorithms compared with other algorithms has the advantage of time-efficiency, and this paper proposes the accounting information management problem to meet the applicability of dynamic programming algorithms, and therefore the optimization of dynamic programming algorithms is designed further in the latter part of the paper.

Dynamic programming algorithms in accounting information management
Dynamic Planning Algorithm Design

Before conducting experiments on the application of dynamic programming algorithms to accounting information management, one needs to be familiar with an overview of the complete knapsack problem. An overview of the complete knapsack problem is given next, first given n event, event i has an importance of wi and a value of vi and each event has an infinite number of segments. The capacity of the existing knapsack is wi Find the sum of the maximum values of which events should be done in the knapsack. Where the vector (X1, X2, X3,……, Xn) maximizes the value with the constraints: i=1nViXi . and the sum must satisfy the following constraints: i=1nViXiW,Xi{0,1,2,,W/Wi}

In this case, the complete knapsack problem is similar to the 0/1 knapsack problem, but in the complete knapsack problem, the number of each event is infinite. For each event, there are only two decisions in the 0/1 knapsack problem. Either you choose or you don't choose. However, in the complete knapsack problem, there are not only two strategies associated with the events, but a variety of strategies for choosing 0, choosing 1, and choosing 2 …… W/Wi.

By looking at the idea of the 0/1 knapsack problem, subproblem m(i, j) is defined as the maximum value that can be obtained from the previous i events based on the packet capacity j. Although there are infinitely many of each event, there are still two strategies at a given time, and the corresponding state transition equations are: m(i,j)=max{m(i1,jx,Wi)+xVi,0xWij}

The initial iteration condition is: m(i,j)=xV1,0xW1j

This conventional dynamic programming algorithm is often referred to as the NDP algorithm in event-specific applications. Like the 0/1 knapsack problem, the complete knapsack problem requires the computation of subproblems O(nw), but the time to compute each subproblem is no longer a constant, but rather O(w/w). Thus, the NDP algorithm has a time complexity of O(nw(W/Wi)) and a space complexity of O(nw).

Dynamic Programming Algorithm Improvement

For the knapsack problem, the following optimizations can be considered: for two events i, j, if the constraints of WiWj, ViVj are satisfied, the i rd event can be disregarded when loading it into the knapsack. In this way, replacing the i th event loaded into the knapsack with the i th event of low importance and high value can be done in such a way that the total value of the knapsack will not be reduced. This means that this approach can speed up the execution of the algorithm during accounting information management while reducing the overall event types of accounting information management. However, in the special case when any two events i, j are not related on WiWj, ViVj, no event can be removed, and then this method cannot optimize the time efficiency at the time of accounting information management.

Since the complete knapsack is structurally similar to the 0/1 knapsack problem, except that there is only one event in the 0/1 knapsack while there are multiple events in the complete knapsack, the complete knapsack problem can be considered to be converted into the 0/1 knapsack problem. Due to the limitation of the knapsack capacity, the 1st event can only be selected at most [W/Wj ] times in the complete knapsack problem, so we can convert the 1st event to the 0/1 knapsack problem and establish the state transition equation as follows: m(i,j)={ max{m(i1,j),m(i1,jWi)+Vi},jWim(i1,j),0jWi

The initial iteration condition is: m(1,j)={ V1,jW10,0j<Wi

However, the method still has defects in the time efficiency of accounting information management. Here, in order to achieve the purpose of improving the algorithm, this paper proposes a more efficient conversion method. Assuming the inference that for any positive integer n, it can be decomposed into this form of n = 1 + 2 + 4… + 2k−1 + n – 2k + 1, where k is the largest integer that satisfies n – 2k + 1 ≥ 0, and any positive integer c = X0 × 1 + X1 × 2 + X2 × 4 … + Xk−1 + Xk × (n – 2k + 1)c ∈ {0, 1}, this shows that for any positive integer n can be decomposed into n = 1 + 2 + 4 ⋯ + 2k−1 + n – 2k + 1.

The above problem is converted to a 0/1 knapsack problem by inference, the first one is to convert the i st event to a [W/Wi ] event with value Vi and importance Wi. After the algorithm is performed, the conversion process is as follows: the value of each event after the conversion is Xi*Vi and the importance is Xi*Wi, where Xi stands for 1,2,3,4…2k−1, W/Wi – 2k + 1, and the i th event is converted to O(log[W/Wi]) can be solved by using the dynamic algorithm of the 0/1 knapsack problem, and the algorithm ‘s time complexity is O(Wi=1nlog[W/Wi]) . Such a binary algorithm [25] uses the idea of converting a complete knapsack problem into a 0/1 knapsack problem and then solving it, the algorithm is abbreviated as notated as BDP, and its algorithmic path is shown in Fig. 1.

Figure 1.

BDP model path

When performing the computation of subproblem m(i, j), the NDP algorithm refers to states that have already been solved, e.g., X = [j/Wi]. When performing the optimization of the number of states involved in each state transition, the process of solving a problem with a dynamic programming algorithm is essentially the computation of the states defined in the problem. The computational states are usually derived and decisions are made by solving the states; therefore, the number of states involved in the state transitions in the algorithm when computing the states of each subproblem affects the time efficiency of the Dynamic Programming algorithm when applied to the management of accounting information. To solve this problem, it can be considered to optimize the time efficiency of the algorithm by reducing the number of states involved in each state transition, which is derived from the transition equation that points to for each decision in X = 0, 1, 2, …, [j/Wi] when performing the calculation of subproblem m(i, j). By analyzing let X = [j/Wi], the subproblem m(i, jWi) that has been solved when computing subproblem m(i, j) is the maximum that can be obtained based on the first i – 1 events of the backpack capacity jWi and the i th event of X – 1. The original state transition formula repeatedly refers to a large number of states when computing the subproblem states, so the state transition formula can be optimized as: m(i,j)={ max{m(i1,j),m(i,jWi)+ViijWim(i1,j)   0jWi

By analyzing the original state transition formula, it is found that each state transition involves a large number of invalid states. After the analysis of the decision dependencies between the states, the number of states in each state transition is reduced from O(W/Wi) to O(1), while the time complexity has optimized to O(nw). In this process is usually called ODP dynamic programming optimization.

A new dynamic programming algorithm (BDP) is designed by studying the complete backpack problem and the 0/1 backpack problem, which significantly reduces the time complexity by transforming the complete backpack problem into the 0/1 backpack problem, thus improving the operational efficiency of the algorithm. Further, a more efficient Optimal Dynamic Programming (ODP) algorithm is proposed by reducing the number of states involved in each state transition by optimizing the state transition formulation.The ODP algorithm not only reduces the computation of invalid states, but also further improves the time efficiency of the algorithm by reducing the number of state transitions.

Performance analysis of solving algorithms

The proposed improved dynamic programming algorithm and the traditional dynamic programming algorithm are used in the solution of the dynamic programming model, and the iteration process is shown in Fig. 2. From Fig. 2, it can be seen that the improved dynamic programming algorithm proposed in the paper has converged in 35 iterations, while the traditional dynamic programming algorithm starts to converge only in 65 iterations. This shows the superior performance of the improved model in this paper, which can complete the convergence in a smaller number of iterations.

Figure 2.

Solve the iterative process

The improved dynamic programming algorithm in this paper is applied to the accounting information management of an enterprise, and the resource values of 10 different nodes of accounting are selected to test the data processing rate and accuracy of accounting information when applying the method, and the test results are shown in Fig. 3, where Fig. (a), Fig. (b), and Fig. (c) indicate the average processing time, processing rate, and processing accuracy of the method, respectively. the test data of the 10 different nodes of accounting information show that The average processing time of the method is 7.28s, and the data processing rate of accounting information is 22.12Mbit/s, which is dozens of times faster than that of the traditional accounting information management method, and the accuracy of its data processing reaches more than 98.5%. Therefore, the improved dynamic programming algorithm design in this paper greatly improves the efficiency and accuracy of accounting information management and further enhances the effectiveness of accounting information processing.

Figure 3.

Test results

Analysis of the effectiveness of the application of dynamic programming algorithms

An enterprise for the listed electronic processing enterprises, in different provinces and cities with a number of factories parks, the enterprise internal financial statements using the daily statement system, business accounting and financial accounting work pressure, will be improved in this paper dynamic programming algorithm applied to eight different parks in the management of accounting information, each park in the group as a unit of the extraction of eight work groups, compared before and after the trial of the algorithm of accounting work The application data is shown in Fig. 4. The total working hours refers to the sum of the weekly working hours of all financial accounting and operational accounting related personnel. The total working hours of each group of accounting-related personnel in each factory campus are reduced by more than 30% compared with the total working hours of each group of accounting-related personnel before the use of the algorithm. It shows that the use of the improved dynamic programming algorithm proposed in this paper has led to a significant increase in the efficiency of accounting work.

Figure 4.

Total length of work

In order to further verify the application effect of the algorithm in the enterprise accounting-related staff, 100 accounting-related staff were asked to make a perceptual evaluation of the four dimensions of the previous accounting information management method and the accounting information management method that applied the algorithm of this paper, with a score of 10 out of 10, and a minimum of 0. The four dimensions were efficiency, ease of getting started, reasonableness, and applicability, respectively. The statistics of the subjective evaluation results are shown in Table 1. The average score of related staff's evaluation of this paper's method was improved by 28% compared with the previous method. It confirms the high evaluation of the staff on the method of accounting information management based on the improved dynamic planning algorithm. The reasons for this result are analyzed mainly because the method significantly reduces the workload of accounting-related personnel and reduces the probability of human error.

The relevant staff subjective evaluation results(N=100)

Dimension Comparison project <5.0 5.0~8.0 >8.0 Average score
Efficiency Primary method 51 22 27 5.25
Improvement method 12 59 29 8.43
Easy access Primary method 56 23 21 4.56
Improvement method 15 62 28 8.12
Reasonableness Primary method 42 43 15 4.89
Improvement method 15 70 15 7.88
Applicability Primary method 44 39 17 5.25
Improvement method 9 79 12 7.98

After incorporating the improved dynamic programming algorithm into the accounting information management, all aspects of the enterprise have been greatly improved. Through the use of the improved dynamic programming algorithm, the operating cycle of the enterprise has been greatly improved, and Figure 5 shows the change in the operating cycle of the enterprise. In 2011, when the improved dynamic planning algorithm was just implemented, the operating cycle was compressed from 130 days to 125 days, and in the following years, the operating cycle is also gradually shortened, and in 2023, the operating cycle is only 56 days. Through the application of rational dynamic planning algorithms, accounting-related staff can formulate reasonable procurement plans based on the supply and demand situation in the market, manage and monitor inventory and receivables, and significantly reduce inventory costs.

Figure 5.

Operational cycle change

The enterprise has realized high labor productivity through the application of improved dynamic planning algorithm to accounting information management. The enterprise has been actively exploring accounting information management methods, since the introduction of improved dynamic programming algorithms and accounting information management combined mode, the rights and responsibilities are assigned to each person, everything with the data to speak, to stimulate the enthusiasm of the staff, so that employees pay more attention to their own value creation. Figure 6 shows the change of labor productivity of the enterprise, the company's labor productivity has been maintained at a high level, even in the economic downturn in the period of 2012-2014 also maintained a relatively high level.2023 compared with 2022, labor productivity increased by 6.65%.

Figure 6.

Labor productivity change chart

Conclusion

Dynamic programming algorithm is an optimization method that uses state transfer to solve multi-stage decision-making. In this paper, the application of dynamic programming algorithm in accounting information management is studied in the light of the problems in accounting information management.

The improved dynamic programming algorithm in this paper, when dealing with the problems in the management of aggregate information, the average processing rate is 22.12Mbit/s, compared with the traditional accounting information management methods under the information processing rate is greatly improved, and the accuracy of its data processing are more than 98.5%. It shows that the improved dynamic programming algorithm in this paper improves the effectiveness of accounting information management.

The method designed in this paper is used to reduce the total working hours of the personnel responsible for accounting work in the enterprise by more than 30% compared with the total working hours of the personnel responsible for accounting work in the enterprise before the use of the method. And the average score of the evaluation of this paper's method is 28% higher than that of the previous accounting information management method. It shows that this method reduces the workload of accounting related personnel, and also improves their work efficiency, which is recognized by the staff. In addition, the method has an excellent effect on improving the operation cycle of the company. It can keep the company's labor productivity at a high level for a long time, which verifies that the method of this paper can achieve the goal of the most scientific management of accounting information and the maximization of the overall benefit of the enterprise.

Language:
English