Questions tagged [algorithm]
An algorithm is an effective method that can be expressed within a finite amount of space and time and in a well-defined formal language for doing "just about anything"
103 questions
1 vote
1 answer
93 views
Doubts on implementation of a beamforming algorithm to produce narrower beams
I am trying to understand and implement in MATLAB, the algorithm described in the paper A Beamforming Method Based on Polarization Matching but my math background is not strong nor am I used to ...
0 votes
1 answer
160 views
Are there any forward error correcting code algorithms for a partially reliable channel? [closed]
There are plenty or practical FEC algorithms - RS, Golay, convolutional codes of all sorts. All of them assume that the original data and the FEC code are sent over the same channel with the same ...
1 vote
0 answers
218 views
How to control the galvanometer scanner and XYZ stage to work synchronously via software?
I have a laser galvo scanners and XYZ stages. They are controlled separately by a servo control card and a galvanometer control card, and each performs well when working alone. Now I want to combine ...
3 votes
2 answers
1k views
Algorithm for converting a 128-bit value to a string
I am trying to convert 128-bit data to a string in a PLC, but the PLC has max. 32-bit data. I store 128-bit data as a byte array and bit array. Now I need to convert this value to a string, but the ...
1 vote
0 answers
124 views
SRT division: correcting BSD quotient
I have been reading a lot about the SRT division algorithm lately and I understand that the main idea is that it allows us to skip over addition/subtraction, unlike non-restoring division where we ...
-4 votes
1 answer
231 views
How to find minimum number of NAND gates for a given Boolean Expression by Using Genetic Alogorith(How to write a Code ) [closed]
I have been trying to write a code using gentic algorithm to find minimum number of NAND gates,but i have no idea of how to take a chromosome or case to find nand gates,and how to find fitness value ...
3 votes
3 answers
224 views
Downsampling an audio signal, removing outlier values due to transistional spikes in the signal
I have an audio signal as following: I'm looking for a way to extract only the constant parts (in red,) or in other words, remove the outliers (in green.) I have very little knowledge in signal ...
0 votes
1 answer
6k views
Algorithm for calculating prescaler and period of a timer
I want to set frequency of a timer in a microcontroller. Frequency is determined by Prescaler and Period (ARR). Both of these are 16bit integer numbers. $$f_{tim}=\frac{f_{clock}}{prescaler\cdot ...