Data compression methods [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Why are most data compression algorithms created with C++ or Java. Why not use javascript or even ruby? Is it dependent on the file type you are trying to compress such as text,video or even audio files?

If you need to compress data, it is probably because you have a lot of data; as such, the performance of such algorithms is pretty important, and other things being equal, a compiled language typically performs better on the kind of low-level data manipulation such algorithms employ than an interpreted one.

Related

How can I implement online algorithms using functional programming? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 11 hours ago.
Improve this question
I program embedded systems using C++. I am learning functional programming and would love to apply it more in my work. All of my data is collected discretely and is often times required to be analyzed online.
For example, using a moving average to smooth signals. I can make the moving average function pure, but I can't make the state for the function const. Another example, I can make a pure Schmitt trigger function, but I can't make all of its inputs depend only on the current state.
What is the best way, in a functional sense, to store data from previous time steps?
Also, do you have any favorite references for embedded/functional programming?

From String to Function [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'd like to know if there is a way to transform a string into a function em c++. For example if I have the string: "x+y" it'd create the function and by replacing x and y, get the value of it.
In Java there is this API https://www.objecthunter.net/exp4j/index.html, so I was wondering if there is something similar.
There are many possible methods one could use to transform a string into a "function". Many of those involve parsing the string and building a function-like object out of it.
A lightweight and portable solution would be to use ExprTk, a mathematical expression library developed by Arash Partow.
The main page contains various usage examples.

Census transform vs Mutual Information [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I need to use an algorithm for stereo processing images (or frames – as I intend to use it for a real-time application written in C/C++) and I was thinking about: Census transform algorithm and matching cost calculation based on Mutual Information as my best options, but as far as I know, Census transform doesn’t give quite as accurate results as Mutual Information, and Mutual Information is more expensive.
Which one would be more suitable for my case?

How to implement a parser in C for xml based structured language? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I need to implement a simple parser in C (or C++ if C is discouraged for this application) that will read a xml file which will only contain a few elements (that's why called it xml based) i.e., only 4 root elements and and less than 5 child elements totally.
Is it easy to implement or should I use a library like expat? And if it is possible can someone tell me how I can about the process?
Use libxml or libexpat.
There are millions, trillions of examples you can find on net, or even at StackOverflow.
Have a look at this: How can libxml2 be used to parse data from XML?
or use google protobuf,
although it is not xml-based, but it fast.

Is it possible to create the low-level grapics API (similar to OpenGL)? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Is that possible to create a low level framework similar to OpenGL?
What do you need to building such API?
No, implementing something like OpenGL is not possible. Since the time OpenGL has decended from the heavens complete, writing something like it was forbidden by all common religions.
But really, what you'll actually need is about 21 years of work, a few thousands of developers and broad support from all industry leaders, so yea, piece of cake.
Or actually, all you need is just a notepad and a pencil, writing is easy!