Logarithmic Data Encoding Offset Mechanism for Overflow Prevention

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Standard numeric encodings, such as IEEE double precision floating point, often fail to represent sufficiently large or small numbers, leading to out-of-range conditions like overflow or underflow, and direct operations on logarithmic encodings can result in errors due to limited numeric ranges.

Innovation Solution

Implementing improved numeric operations by performing arithmetic computations on logarithmically encoded data values, using offset values to prevent out-of-range errors during summation and subtraction, and optimizing storage and processing requirements by reducing the need for temporary conversions to linear values.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If standard numeric encodings (IEEE double precision floating point) are used, then computational operations are simple and efficient, but the system cannot represent sufficiently large or small numbers, resulting in overflow or underflow errors

Engineering Contradiction:
Improveability to represent large or small numbersVSAvoidcomplexity of numeric operations
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent changes the parameter of numeric encoding from linear (standard floating point) to logarithmic encoding. This allows the system to represent a vastly extended range of numbers (from approximately 10^-324 to 10^308 in practice) while maintaining the ability to perform arithmetic operations. The logarithmic encoding transforms multiplication into addition and division into subtraction, which are simpler operations that avoid overflow/underflow issues inherent in standard encodings.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent introduces offset values as intermediaries to bridge the gap between logarithmic encoding and standard arithmetic operations. When performing addition or subtraction on logarithmically encoded numbers, the system temporarily converts to linear space using offset values, performs the operation, and then converts back to logarithmic space. This intermediary conversion mechanism allows the system to maintain both the extended range capability and the simplicity of arithmetic operations.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If logarithmic encoding is used to extend numeric range, then overflow and underflow errors are reduced, but direct addition and subtraction operations cannot be performed without causing out-of-range errors

Engineering Contradiction:
Improveresistance to overflow and underflow errorsVSAvoidease of performing addition and subtraction
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent uses offset values as intermediaries to enable addition and subtraction operations on logarithmically encoded numbers. The process involves: (1) determining an offset value from the logarithmic values, (2) converting the logarithmic values to linear space by adding the offset, (3) performing the addition or subtraction in linear space, and (4) converting the result back to logarithmic space. This intermediary mechanism makes the operations both possible and reliable.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent performs preliminary determination of offset values before performing addition or subtraction operations. By pre-calculating appropriate offset values based on the magnitude of the logarithmic inputs, the system prepares the data in a form that ensures the subsequent arithmetic operations will not produce out-of-range errors. This preliminary action prevents errors before they can occur.

Inventive Principle:
Principle #10Preliminary action

3Ease of operation

If temporary conversions to linear values are performed to enable arithmetic operations on logarithmic data, then addition and subtraction become possible, but storage and processing requirements increase

Engineering Contradiction:
Improveability to perform addition and subtractionVSAvoidstorage and memory bandwidth requirements
Core Design Contradiction:
Ease of operationVSQuantity of substance

Solution Approach 1:

The patent applies partial conversion rather than complete conversion to linear space. Instead of converting all logarithmic values to linear space and performing operations there, the system converts only the necessary portions (using offset values) and performs operations in a hybrid space that combines logarithmic and linear representations. This partial action approach reduces the quantity of data that needs to be stored and processed while still enabling the required arithmetic operations.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS20220357919A1Numeric Operations on Logarithmically Encoded Data Values
Publication Date: 2022.11.10 ORACLE INT CORP
  • US20220357919A1 patent drawing
  • US20220357919A1 patent drawing
  • US20220357919A1 patent drawing

AI summary

Numeric operations on a series of values, each encoded as a logarithm, may be performed. A first offset is determined based on values of an initial subset of the series. Numerical operations on individual elements of the series may then be performed by performing an exponentiation of a difference between the individual elements and the first offset. A particular element in the series may be identified as being unable to be included without causing an overflow or underflow of an exponentiation or numerical operation. In this event, a second offset may be determined. The numerical operations may then proceed by adjusting a current accumulated result using the second offset and continuing to perform numerical operations on individual elements of the series by performing an exponentiation of a difference between the individual elements and the second offset. Additional offsets may be optionally determined until the numerical operation is complete.