# US 2021/0286636 A1 · Systems and Methods for Dynamic Server Control based on Estimated Script Complexity

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0286636 A1
- Document ID: US20210286636A1
- Status: Published application
- Kind: A1
- Application number: 16/816,196
- Filed: 2020-03-11
- Published: 2021-09-16
- Earliest claimed: 2020-03-11
- Assignees: TD Ameritrade IP Company, Inc.
- Applicants: TD Ameritrade IP Company, Inc.
- Inventors: Aaron David WALLACE; Abhilash Krishnankutty NAIR
- Web page: https://patentgrep.com/patent/US20210286636A1

## CPC

- G06F 9/45512: {Command shells}
- G06F 9/30192: {according to data descriptor, e.g. dynamic data typing}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 16/9035: Filtering based on additional data, e.g. user or group profiles
- G06F 16/9038: Presentation of query results
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A computer system includes processor hardware and memory hardware storing instructions for execution by the processor hardware. The instructions include, in response to receiving a first script from a user device, compiling the first script, generating an image representation of the compiled first script, and determining an estimated runtime of the first script using a machine learning algorithm. The instructions include transmitting the estimated runtime for display on a display of the user device, categorizing the estimated runtime, and transmitting the first script to a queue based on the categorization. The instructions include, in response to the first script reaching a front of the queue, executing the first script on a server of the plurality of servers that corresponds to the queue. The instructions include, in response to the first script being executed, transforming the display of the user device according to instructions of the first script.

## Claims

### Claim 1

A computer system for coordinated control of a plurality of servers, the computer system comprising:
processor hardware; and
memory hardware coupled to the processor hardware,
wherein the memory hardware stores:
a script runtime database including a set of image representations and corresponding script runtimes and
instructions for execution by the processor hardware and
wherein the instructions include, in response to receiving a first script from a user device:
compiling the first script;
generating an image representation of the compiled first script;
determining an estimated runtime of the first script using a machine learning algorithm, wherein the machine learning algorithm is trained using the set of image representations and corresponding script runtimes of the script runtime database;
transmitting the estimated runtime for display on a display of the user device;
categorizing the estimated runtime;
transmitting the first script to a queue based on the categorization;
in response to the first script reaching a front of the queue, executing the first script on a server of the plurality of servers that corresponds to the queue; and
in response to the first script being executed, transforming the display of the user device according to instructions of the first script.

### Claim 2 (depends on 1)

The computer system of claim 1 wherein compiling the first script includes generating a bytecode representation of the first script.

### Claim 3 (depends on 2)

The computer system of claim 2 wherein:
the image representation includes an array of pixels and
an intensity of each pixel indicates a value of the bytecode representation.

### Claim 4 (depends on 1)

The computer system of claim 1 wherein the instructions include, in response to receiving an indication the estimated runtime is accurate, storing the estimated runtime and the image representation in the script runtime database.

### Claim 5 (depends on 1)

The computer system of claim 1 wherein the first script is received from the user device in response to selection of a user interface element.

### Claim 6 (depends on 1)

The computer system of claim 1 wherein the first script is received from the user device in response to selection of a new line of the first script.

### Claim 7 (depends on 1)

The computer system of claim 1 wherein:
the memory stores an information database including data referenced in the first script and
the first script includes an instruction to obtain data from the information database.

### Claim 8 (depends on 1)

The computer system of claim 1 wherein the instructions include, in response to receiving an indication the compiling of the first script failed, generating and transmitting a compile error to the user device.

### Claim 9 (depends on 1)

The computer system of claim 1 wherein the instructions include:
categorizing the first script as a first type in response to the estimated runtime being less than a predetermined time and
in response to the first script being categorized as the first type, transmitting the first script to a first queue of a first server of the plurality of servers.

### Claim 10 (depends on 1)

The computer system of claim 1 wherein the instructions include:
categorizing the first script as a second type in response to the estimated runtime being greater than a predetermined time and
in response to the first script being categorized as the second type, transmitting the first script to a second queue of a second server of the plurality of servers.

### Claim 11 (depends on 1)

A processing system comprising:
the computer system of claim 1 and
the plurality of servers.

### Claim 12

A method for coordinated control of a plurality of servers, the method comprising:
in response to receiving a first script from a user device:
compiling the first script;
generating an image representation of the compiled first script;
determining an estimated runtime of the first script using a machine learning algorithm, wherein the machine learning algorithm is trained using a set of image representations and corresponding script runtimes of a script runtime database, and wherein the script runtime database includes the set of image representations and corresponding script runtimes;
transmitting the estimated runtime for display on a display of the user device;
categorizing the estimated runtime; and
transmitting the first script to a queue based on the categorization;
in response to the first script reaching a front of the queue, executing the first script on a server of the plurality of servers that corresponds to the queue; and
in response to the first script being executed, transforming the display of the user device according to instructions of the first script.

### Claim 13 (depends on 12)

The method of claim 12 wherein compiling the first script includes generating a bytecode representation of the first script.

### Claim 14 (depends on 13)

The method of claim 13 wherein:
the image representation includes an array of pixels and
an intensity of each pixel indicates a value of the bytecode representation.

### Claim 15 (depends on 12)

The method of claim 12 further comprising, in response to receiving an indication the estimated runtime is accurate, storing the estimated runtime and the image representation in the script runtime database.

### Claim 16 (depends on 12)

The method of claim 12 wherein the first script is received from the user device in response to selection of: (i) a user interface element or (ii) a new line of the first script.

### Claim 17 (depends on 12)

The method of claim 12 further comprising:
storing an information database including data referenced in the first script, wherein the first script includes an instruction to obtain data from the information database.

### Claim 18 (depends on 12)

The method of claim 12 further comprising:
in response to receiving an indication the compiling of the first script failed, generating and transmitting a compile error to the user device.

### Claim 19 (depends on 12)

The method of claim 12 further comprising:
categorizing the first script as a first type in response to the estimated runtime being less than a predetermined time; and
in response to the first script being categorized as the first type, transmitting the first script to a first queue of a first server of the plurality of servers.

### Claim 20 (depends on 12)

The method of claim 12 further comprising:
categorizing the first script as a second type in response to the estimated runtime being greater than a predetermined time; and
in response to the first script being categorized as the second type, transmitting the first script to a second queue of a second server of the plurality of servers.
