Computer-implemented weighted tree search to resolve variable name ambiguity
Abstract
Resolving ambiguous variable names in processing of a computer application includes representing variable declarations with dynamic variable scopes of the computer application in a tree data structure where the nodes of the tree data structure are variable names of the computer application. Ambiguous variable names are resolved by calculating distances between a context node and two or more candidate nodes of the tree data structure where each of the candidate nodes contains the searched variable name. The weighted distance between the context node and each candidate node equals the number of downward steps from the context node to the candidate node multiplied by a first constant plus the number of upward steps from the context node to the candidate node multiplied by a second constant. The node having a desired weighted distance is selected and information from the selected node is returned to the computer application as the variable value.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for resolving ambiguity in processing of a computer application having variables with variable declarations with dynamic variable scopes, the method comprising: representing the variable declarations with dynamic variable scopes of the computer application in a tree data structure, where nodes of the tree data structure are variable names of the computer application; when the computer application executes code or an event from a particular node in the tree data structure and asks for a value of the variable for the particular node but finds a searched variable name at two or more node
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (1)
- Chandy, Distributed Computation on Graphs: Shortest Path Algorithms, Programming Techniques and Data Structures, Communications of the ACM, vol. 25, No. 11, pp. 833-837, Nov. 1982.