473,325 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Generic algorithm implementation

61
Does anybody give me suggestions in implementing an algorithm using a programming language such as C#.

For example, lets say; I had a stream of data continuously coming to me. I want to filter the data based on certain conditions such as "if new data is lessthan 10", discard the new data.

I can implement the same by 'C# generic collection', but Im more concerned about the performance. Because I may have to iterate the entire input collection for the conditional predicates.

I heard about the ANTLR parser. I wanted to know any best way to implement such new algorithms.
Jun 15 '11 #1
0 1737

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Steven Bethard | last post by:
So I'm trying to get a prototype implementation of the 'generic object' type. (I'm currently calling it 'bunch', but only because I can't really think of anything better.) I'd like some feedback...
3
by: spakka | last post by:
I'm useless at templates, but, inspired by this post: <hinnant-074D8A.11281207032005@syrcnyrdrs-01-ge0.nyroc.rr.com>, I'm trying to write an algorithm template <class BidirectionalIterator,...
17
by: silverburgh.meryl | last post by:
In STL, there is no copy_if algorithm. But how can I emulate that? I am thinking about using find_if and then a copy. But how can I pass the InputIterator (begin and end) to copy so that it knows...
2
by: Sherrie Laraurens | last post by:
Hi all, I'm trying to write a generic algorithm routine that will take begin and end iterators of a container, iterate through the range and perform a "calculation" of sorts. The trouble is...
0
by: maleman2003 | last post by:
I would like to know if anyone would have a reference where I can browse to and review Code for a Genetic Algorithm that maximize value of f(x,y) and the values of x and y. This algorithm is to...
6
by: =?Utf-8?B?RG9uYWxkIFhpZQ==?= | last post by:
In C# 2, this works just fine: public class foo : IEnumerable<string> { private string _list; public IEnumerator<stringGetEnumerator() { foreach (string s in _list) yield return s; }
6
by: StephQ | last post by:
I need to implement an algorithm that takes as input a container and write some output in another container. The containers involved are usually vectors, but I would like not to rule out the...
7
by: Dave | last post by:
I've got these declarations: public delegate void FormDisplayResultsDelegate<Type>(Type displayResultsValue); public FormDisplayResultsDelegate<stringdisplayMsgDelegate; instantiation:...
7
by: whodgson | last post by:
The example of this algorithm is taken from the book I'm learning from. It compiles but won't run. Can anyone see what's wrong? #include<iostream> #include<algorithm> //have also included <cmath>...
2
by: hemantc87 | last post by:
i want to implement a sort function using a generic class.But when i declare the type generic parameter T it is not able to take the input from user.what should i do? static void Sort<T>(ref T a)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.