Comparator gates
About points...
We associate a certain number of points with each exercise.
When you click an exercise into a collection, this number will be taken as points for the exercise, kind of "by default".
But once the exercise is on the collection, you can edit the number of points for the exercise in the collection independently, without any effect on "points by default" as represented by the number here.
That being said... How many "default points" should you associate with an exercise upon creation?
As with difficulty, there is no straight forward and generally accepted way.
But as a guideline, we tend to give as many points by default as there are mathematical steps to do in the exercise.
Again, very vague... But the number should kind of represent the "work" required.
When you click an exercise into a collection, this number will be taken as points for the exercise, kind of "by default".
But once the exercise is on the collection, you can edit the number of points for the exercise in the collection independently, without any effect on "points by default" as represented by the number here.
That being said... How many "default points" should you associate with an exercise upon creation?
As with difficulty, there is no straight forward and generally accepted way.
But as a guideline, we tend to give as many points by default as there are mathematical steps to do in the exercise.
Again, very vague... But the number should kind of represent the "work" required.
About difficulty...
We associate a certain difficulty with each exercise.
When you click an exercise into a collection, this number will be taken as difficulty for the exercise, kind of "by default".
But once the exercise is on the collection, you can edit its difficulty in the collection independently, without any effect on the "difficulty by default" here.
Why we use chess pieces? Well... we like chess, we like playing around with \(\LaTeX\)-fonts, we wanted symbols that need less space than six stars in a table-column... But in your layouts, you are of course free to indicate the difficulty of the exercise the way you want.
That being said... How "difficult" is an exercise? It depends on many factors, like what was being taught etc.
In physics exercises, we try to follow this pattern:
Level 1 - One formula (one you would find in a reference book) is enough to solve the exercise. Example exercise
Level 2 - Two formulas are needed, it's possible to compute an "in-between" solution, i.e. no algebraic equation needed. Example exercise
Level 3 - "Chain-computations" like on level 2, but 3+ calculations. Still, no equations, i.e. you are not forced to solve it in an algebraic manner. Example exercise
Level 4 - Exercise needs to be solved by algebraic equations, not possible to calculate numerical "in-between" results. Example exercise
Level 5 -
Level 6 -
When you click an exercise into a collection, this number will be taken as difficulty for the exercise, kind of "by default".
But once the exercise is on the collection, you can edit its difficulty in the collection independently, without any effect on the "difficulty by default" here.
Why we use chess pieces? Well... we like chess, we like playing around with \(\LaTeX\)-fonts, we wanted symbols that need less space than six stars in a table-column... But in your layouts, you are of course free to indicate the difficulty of the exercise the way you want.
That being said... How "difficult" is an exercise? It depends on many factors, like what was being taught etc.
In physics exercises, we try to follow this pattern:
Level 1 - One formula (one you would find in a reference book) is enough to solve the exercise. Example exercise
Level 2 - Two formulas are needed, it's possible to compute an "in-between" solution, i.e. no algebraic equation needed. Example exercise
Level 3 - "Chain-computations" like on level 2, but 3+ calculations. Still, no equations, i.e. you are not forced to solve it in an algebraic manner. Example exercise
Level 4 - Exercise needs to be solved by algebraic equations, not possible to calculate numerical "in-between" results. Example exercise
Level 5 -
Level 6 -
Question
Solution
Short
Video
\(\LaTeX\)
No explanation / solution video to this exercise has yet been created.
Visit our YouTube-Channel to see solutions to other exercises.
Don't forget to subscribe to our channel, like the videos and leave comments!
Visit our YouTube-Channel to see solutions to other exercises.
Don't forget to subscribe to our channel, like the videos and leave comments!
Exercise:
Construct the comparator gates less greater equal from only textttAND textttOR and textttNOT gates.
Solution:
center circuitikzscale. % A_greater: A AND NOT B draw nodeand port and ; draw -. nodenot port scale. not ; nodeanchoreast at not.in B; nodeanchoreast at and.in A; nodeanchorsouth at and.out A_greater; % A_equal: OR of two AND gates draw nodeor port or ; draw --. nodeand port scale. and ; draw -. nodeand port scale. and ; draw --. nodenot port scale. not ; draw -. nodenot port scale. not ; nodeanchoreast at and.in overlineA; nodeanchoreast at and.in overlineB; nodeanchoreast at and.in A; nodeanchoreast at and.in B; nodeanchorwest at or.out A_equal; % Connections for A_equal NOT gates draw not.out -- and.in ; draw not.out -- and.in ; nodeanchoreast at not.in A; nodeanchoreast at not.in B; draw and.out -- ++. |- or.in ; draw and.out -- ++. |- or.in ; % A_less: NOT A AND B draw - nodeand port and ; draw --. nodenot port scale. not ; nodeanchoreast at not.in A; nodeanchoreast at and.in B; nodeanchorsouth at and.out A_less; draw not.out -- and.in ; circuitikz center array|c|c|c|c|c| hline A & B & textA_greater & textA_equal & textA_less hline & & & & & & & & & & & & & & & & hline array
Construct the comparator gates less greater equal from only textttAND textttOR and textttNOT gates.
Solution:
center circuitikzscale. % A_greater: A AND NOT B draw nodeand port and ; draw -. nodenot port scale. not ; nodeanchoreast at not.in B; nodeanchoreast at and.in A; nodeanchorsouth at and.out A_greater; % A_equal: OR of two AND gates draw nodeor port or ; draw --. nodeand port scale. and ; draw -. nodeand port scale. and ; draw --. nodenot port scale. not ; draw -. nodenot port scale. not ; nodeanchoreast at and.in overlineA; nodeanchoreast at and.in overlineB; nodeanchoreast at and.in A; nodeanchoreast at and.in B; nodeanchorwest at or.out A_equal; % Connections for A_equal NOT gates draw not.out -- and.in ; draw not.out -- and.in ; nodeanchoreast at not.in A; nodeanchoreast at not.in B; draw and.out -- ++. |- or.in ; draw and.out -- ++. |- or.in ; % A_less: NOT A AND B draw - nodeand port and ; draw --. nodenot port scale. not ; nodeanchoreast at not.in A; nodeanchoreast at and.in B; nodeanchorsouth at and.out A_less; draw not.out -- and.in ; circuitikz center array|c|c|c|c|c| hline A & B & textA_greater & textA_equal & textA_less hline & & & & & & & & & & & & & & & & hline array
Meta Information
Exercise:
Construct the comparator gates less greater equal from only textttAND textttOR and textttNOT gates.
Solution:
center circuitikzscale. % A_greater: A AND NOT B draw nodeand port and ; draw -. nodenot port scale. not ; nodeanchoreast at not.in B; nodeanchoreast at and.in A; nodeanchorsouth at and.out A_greater; % A_equal: OR of two AND gates draw nodeor port or ; draw --. nodeand port scale. and ; draw -. nodeand port scale. and ; draw --. nodenot port scale. not ; draw -. nodenot port scale. not ; nodeanchoreast at and.in overlineA; nodeanchoreast at and.in overlineB; nodeanchoreast at and.in A; nodeanchoreast at and.in B; nodeanchorwest at or.out A_equal; % Connections for A_equal NOT gates draw not.out -- and.in ; draw not.out -- and.in ; nodeanchoreast at not.in A; nodeanchoreast at not.in B; draw and.out -- ++. |- or.in ; draw and.out -- ++. |- or.in ; % A_less: NOT A AND B draw - nodeand port and ; draw --. nodenot port scale. not ; nodeanchoreast at not.in A; nodeanchoreast at and.in B; nodeanchorsouth at and.out A_less; draw not.out -- and.in ; circuitikz center array|c|c|c|c|c| hline A & B & textA_greater & textA_equal & textA_less hline & & & & & & & & & & & & & & & & hline array
Construct the comparator gates less greater equal from only textttAND textttOR and textttNOT gates.
Solution:
center circuitikzscale. % A_greater: A AND NOT B draw nodeand port and ; draw -. nodenot port scale. not ; nodeanchoreast at not.in B; nodeanchoreast at and.in A; nodeanchorsouth at and.out A_greater; % A_equal: OR of two AND gates draw nodeor port or ; draw --. nodeand port scale. and ; draw -. nodeand port scale. and ; draw --. nodenot port scale. not ; draw -. nodenot port scale. not ; nodeanchoreast at and.in overlineA; nodeanchoreast at and.in overlineB; nodeanchoreast at and.in A; nodeanchoreast at and.in B; nodeanchorwest at or.out A_equal; % Connections for A_equal NOT gates draw not.out -- and.in ; draw not.out -- and.in ; nodeanchoreast at not.in A; nodeanchoreast at not.in B; draw and.out -- ++. |- or.in ; draw and.out -- ++. |- or.in ; % A_less: NOT A AND B draw - nodeand port and ; draw --. nodenot port scale. not ; nodeanchoreast at not.in A; nodeanchoreast at and.in B; nodeanchorsouth at and.out A_less; draw not.out -- and.in ; circuitikz center array|c|c|c|c|c| hline A & B & textA_greater & textA_equal & textA_less hline & & & & & & & & & & & & & & & & hline array
Contained in these collections: