Comp Sci How to build logic to make context free grammar?

  • Thread starter Thread starter shivajikobardan
  • Start date Start date
  • Tags Tags
    Build Logic
Click For Summary
The discussion revolves around building logic for context-free grammar, with the user sharing their solution and expressing confusion about understanding the derivation process. They acknowledge having memorized the grammar rules but seek clarity on the underlying logic behind them. The user notes that while there are exhaustive methods for machines, human understanding feels more like solving a puzzle. They emphasize the importance of intuition in grasping the solutions rather than relying solely on mechanical processes. Overall, the conversation highlights the challenge of comprehending context-free grammar beyond mere memorization.
shivajikobardan
Messages
637
Reaction score
54
Homework Statement
Context free grammar
Relevant Equations
None
1636738772910.png

I already have the solution.

I also have another solution for this-:

S->AB

A->aA/a

B->ab/aBb

But my issue is I am memorizing them, I am not understanding how this came up. Please explain the logic building behind this.
 
Physics news on Phys.org
I don't think there is any "logic" to deriving a specific string of terminals from the "rules". I am sure there are exhaustive methods that can be performed by a machine. For us, it is kind of a puzzle.
 
I mean just some initution to understand why we came to this solution I mean would be helpful. I know there is no mechanical process for this. It is all practice. But my problem is I am confused while practicing. (I am clear about this tho so don't waste time on this now).
 
Thread 'Full bridge circuit with inductor and resistor'
The above is the circuit i am calculating the inductor current. During the positive half of the sine input D1 and D3 are conducting so the circuit becomes My calculations are as below Are the above equations ok? When transitioning from +Ve cycle to -Ve sine wave does the above equations still applicable? During the negative cycle the diodes D2 and D4 are conducting and the current direction is going into the inductor same as when diodes D1 and D3 are conducting. According to me the same...

Similar threads

Replies
17
Views
3K
Replies
1
Views
2K
Replies
2
Views
3K
Replies
11
Views
2K
Replies
11
Views
2K
Replies
6
Views
2K