Inspiration

Students. When you are reading a book or watching a video and it explains a concept by taking an example. However, the same concept might not work on some other example. Either you have misunderstood it or there is some extra detail which the teacher might have missed. Alexa on the other hand is always available and this skill can solve their problem step by step just like a teacher.

What it does

In simple words, it helps students to convert infix notation to postfix, step by step.

How I built it

I have written my own version of Alexa SDK for C# as none was officially available from Amazon. Also,wWritten a custom algorithm for infix to postfix conversion which can be broken into smaller packets for each element in the expression. The algorithm is stateless, all the packets are mutually cohesive. I followed a simple state machine pattern to transit between one state to another.

Challenges I ran into

Making Alexa recognize individual characters is very difficult. Managing state of stack data structure on every user call and restoring it back for further calculation was a big challenge.

Accomplishments that I'm proud of

Smile on the face of students who tried it :)

What I learned

State machine

What's next for Learn Postfix

A bit of memory management, specially where I am saving the state and restoring it back.

Built With

Share this project:

Updates