A set of well-known routines implemented in ANSI C/C++
for doing Search and String/Pattern Matching and data file processing.
Description
FLOWCHART - Control Logic
Source Languages
In this implementation, the algorithm is actually been
used to do search on a Company database system to extract related data
whenever the user enters a company name. The essential part of this
control logic that implement the linear search is highlighted red and
is nested within the last outer loop of the control logic.
BASIC and ANSI C++
US$0.40
The Binary Search does search to locate an item in a list consisting
of N values in time proportional to Log2 (N). However, the
data set must first be ordered for the algorithm to work. In comparison
to the Linear Search algorithm, the average time taken to locate a
single value depends on the manner in which the search data value
is distributed within the set. Statistical analysis shows an expected
time of O(N)
NOTE that in this algorithm I have added an extra section of control
logic at the exit of the main processing loop - the yellow and dark
green sections.
Use logiccoder to convert this search algorithm to other source programming
language such as VB., JavaScript and so on or just to do modification
or implementation to meet your specific requirement.
Click here to see the original source code in ANSI C/C++
BASIC and ANSI C++
US$0.38
You can modify the control-break logic so that it does
any kind of switch in data processing pattern whenever a sequence of
data values in a selected field(s) of records in a data file changes.
The flowchart illustrated here is a simple example implementation of
this system. However, you can use LogicCoder to do quick modification
in more than one way to implement your own required control logic. For
example, you can abstract section of the control logic and then replace
the abstracted section with your own abstract control logic.
US$0.25
BASIC
US$0.25
Note that this control logic is against the principle of efficient
program flowchart design because it uses two loops that has exactly
the same form and purpose. A single loop is more appropriately efficient
for implementation of the intended processes in this flowchart. For
instance, the Control-Break logic can easily be used to process the
sets of records that this loop logic structure is designed to process.
Using LogicCoder to highlight sections of a flowchart helps you to
quickly identify inefficient implementation of problem solutions.
US$0.30
The control logic for a program that iterate through a
data file with information on traffic violation. The control logic for
the implemented program does processing for the number of traffic violation
and their associated fines and penalties.
BASIC and ANSI C++
US$0.40
Here is the control logic for a function that calculates a hospital
accommodation bill base on service type, patient care and patient
accommodation room type. There are many other kinds of similar accommodation
bill calculation services such as Hotel accommodation or Seminar accommodation
or exhibition accommodation Note that this bill calculation routine
uses sequential file with data stored in a database system.
NOTE that LogicCoder has special functions that you can use to highlight
certain elements or section of a flowchart base on a given condition.
For instance, you can choose to highlight all symbols with a selected
colour that has a call of a selected function. In this case, I've
highlighted all symbols that uses the printf( ) function with a bright
green colour.
BASIC and ANSI C++
US$0.45
BASIC and ANSI C++
US$0.40
Control logci for processing to determine allowance for
mileage done.
BASIC and ANSI C++
US$0.20
Control logic used to determine fees paid by campers using
park facilities.
BASIC and ANSI C++
US$0.35
Select All