Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 766783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T17:06:14+00:00 2026-05-14T17:06:14+00:00

I have a (C#) genetic program that uses financial time-series data and it’s currently

  • 0

I have a (C#) genetic program that uses financial time-series data and it’s currently working but I want to re-design the architecture to be more robust. My main goals are:

  • sequentially present the time-series data to the expression trees.
  • allow expression trees to access previous data rows when needed.
  • to optimize performance of the data access while evaluating the expression trees.
  • keep a common interface so various types of data can be used.

Here are the possible approaches I’ve thought about:

  1. I can evaluate the expression tree by passing in a data row into the root node and let each child node use the same data row.
  2. I can evaluate the expression tree by passing in the data row index and letting each node get the data row from a shared DataSet (currently I’m passing the row index and going to multiple synchronized arrays to get the data).
  3. Hybrid: an immutable data set is accessible by all of the expression trees and each expression tree is evaluated by passing in a data row.

The benefit of the first approach is that the data row is being passed into the expression tree and there is no further query done on the data set (which should increase performance in a multithreaded environment). The drawback is that the expression tree does not have access to the rest of the data (in case some of the functions need to do calculations using previous data rows).

The benefit of the second approach is that the expression trees can access any data up to the latest data row, but unless I specify what that row is, I’ll have to iterate through the rows and figure out which one is the last one.

The benefit of the hybrid is that it should generally perform better and still provide access to the earlier data. It supports two basic “views” of data: the latest row and the previous rows.

Do you guys know of any design patterns or do you have any tips that can help me build this type of system? Should I use a DataSet to hold and present the data, or are there more efficient ways to present rows of data while maintaining a simple interface?

FYI: All of my code is written in C#.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T17:06:15+00:00Added an answer on May 14, 2026 at 5:06 pm

    What you said mostly are all about operations, which should not be the first initiative for OO design. I suggest you create RowObject which maps to the every row of the data table and create another class RowObjectManager which contains a collection of RowObject and related operations like calling the algorithm. This is pretty much like Facade pattern and the you can encapsulate the algorithm in another class and call the algorithm using dependency injection way, which can be decoupled from the RowObjectManager class.

    Then you should pass OBJECT rather then the properties of the object like index to the algorithm, and the algorithm can return the result to the caller.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a program that generates random expressions and then uses genetic techniques
I have created a new Visual Studio Setup Project that uses the output of
I have a generic class that should allow any type, primitive or otherwise. The
I have a generic Repository<T> class I want to use with an ObjectDataSource. Repository<T>
I have a generic class that I'm trying to implement implicit type casting for.
I hava a Java program that needs to monitor a directory tree for changes.
I've got a Qt App that uses QPointers to bring up new UI Dialogs
I'm writing a program that needs a generic temp folder. I'm trying to find
I have a generic class in C# with 2 constructors: public Houses(params T[] InitialiseElements)
I have a generic list... public List<ApprovalEventDto> ApprovalEvents The ApprovalEventDto has public class ApprovalEventDto

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.