Query Optimization Method Based on Simulated Annealing Algorithm
A simulated annealing algorithm and query optimization technology, which is applied in the field of relational database query optimization, can solve the problems of reducing search accuracy, prolonging search time, and local extremum cannot search in a wider range, so as to increase the search range and increase the probability , the effect of shortening the relative time of query optimization
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0038] The database query optimization algorithm based on the simulated annealing algorithm, taking the query optimization of a query command that requires 8 steps to complete the query task as an example: includes the following steps:
[0039] a. Define a strategy space S, and assume that all query strategies in S need 8 steps to complete the query task;
[0040] b. Establish a mathematical model of query strategy cost evaluation based on graph structure, assuming that there are 9 nodes in the graph, from node i (i=1,2,...,9) to node j (j=1,2,... ,9) the path is d ij , the path represents the time spent from node i to node j, that is, the cost, and the cost matrix is What is sought is the total cost of traversing 9 nodes, and the cost function obtained by bringing n=9 into formula (1) is:
[0041]
[0042] Where: (x 1 ,x 2 ,...,x 9 ) is a solution X of the cost function f(X) 1 , where x i =(1,2,3...,9),x j =(1,2,3...,9),x i ≠ x j (i≠j), the set of all solutions ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com