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

  • SEARCH
  • Home
  • 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 3395010
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:14:19+00:00 2026-05-18T04:14:19+00:00

The alphabet: 0, 1 Consider a flip, to flip each character: 0 -> 1;

  • 0

The alphabet: 0, 1

Consider a flip, to flip each character: 0 -> 1; 1 -> 0
So if w = 0011 then w-flip = 1100

Consider a reverse to be the characters in reversed order
So if w = 01101 then w-reverse = 10110

Now I am trying to produce a PDA which takes the string w, and then prints w, prints (w-flip-reversed)

w = 011
w-flip = 100
w-flip-reverse = 001

So this would print: “011001”

Consider # to be a blank character. So a string would start #011#

Transition table looks something like this:

State:    Symbol Read:    Next State:    Head Instruction:
start     #               r1             L

And so on

Any ideas?

  • 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-18T04:14:20+00:00Added an answer on May 18, 2026 at 4:14 am

    Printing out the string is simple (I hope). Printing out the flip is as easy as printing out 0 when you read a 1 and vice-versa.

    A rough sketch to get you going on the reversal:

    • You need a place to put the string piece by piece that lends itself to reversal, so first-in-last-out storage is ideal (What might this be in a PDA?).
    • Then you need to watch for the end of the string so you know when to switch from storing the string for easy reversal to output.
    • then you need to retrieve each piece of the string in the correct reverse order (which if stored FILO is trivial) and output it, stopping when you reach the end of the string.

    In your case, you’ll need to put the flipped string in storage for reversal.

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

Sidebar

Related Questions

I want it to consider anything that isn't an alphabet character to be a
I want to replace any latin / accented characters with their basic alphabet letters
Valid characters include the alphabet (abcd..), numbers (0123456789), spaces, ' and . I need
I have alphabet array 24 character: A B C D E F G H
There are 26 characters in the alphabet (abc..yz) and 10 digits (0..9). That gives
Is it possible to show a alphabet/special character instead of number on the app
for each letter in the alphabet i have an int-array declared like this: int
I have an application that draws random characters from the alphabet and deals with
I need a regular expression to allow all alphabet characters plus Greek/German alphabet in
the user enters a secret word and then from the alphabet choses a letter

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.