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 900589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:24:47+00:00 2026-05-15T15:24:47+00:00

Was wondering what would be the most effcient in memory data strucuture would be

  • 0

Was wondering what would be the most effcient in memory data strucuture would be for a Theater seating plan and rendering that in a graphical form on screen for the user.

This came up as a converstation at work as we are looking at booking systems and there is a type of booking that we need to cater for that is outside of the rest of the type of booking that we need to do.

So – take for granted that the data is a database and that is the persitant store. The discussion is based on the need to efficient display this on screen as a coherant seating plan and record the state of the seat after payment for that seat within the organisation.

300+ in company user environment with the need for Public webSite for self booking.

Concurrency would be catered for in the website side – like checking the current state and timeout if reservation not continued or payment failed.

Scenario

So a customer calls the agent loads the seating plan. The page gets the information form the database and then draws the state of each seat according to the plan on screen. After some discussion about what is available the customer askes to book and pay for j56,j57,j58.

Looks like some form of Array made of Bytes, if drawn each time.
? Would this be efficient?

Alternatives looking at is static WPF app with these seating plan already and populating that from the data.

But thought that I would ask here just for sanity.

Rules.

  • The main plan is 26 rows of 100 seats
  • Each row is alphabetical
  • Each set is sequential from 1 through to 100
  • The seat has the following states
    • Empty
    • Reserved Not paid
    • Reserved Not paid by member
    • Paid
    • Paid member rate
  • 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-15T15:24:47+00:00Added an answer on May 15, 2026 at 3:24 pm

    You are only dealing with 2600 seats?

    Seems to me like a waste of time worrying about saving so few bytes in memory. It’s not like you are representing a stadium with 100k seats.

    Why not just represent every seat with a class, and get the job done?

    public class Seat
    {
        public char SeatRow { get; set; }
        public byte SeatNum { get; set; }
        public SeatState State { get; set; }
    
        public Seat(char row, byte seat, SeatState state)
        {
            this.SeatRow = row;
            this.SeatNum = seat;
            this.State = state;
        }
    }
    public enum SeatState
    {
        Empty,
        ReservedNotPaid,
        ReservedNotPaidMember,
        Paid,
        PaidMemberRate
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

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.