Cognitive Tutor for Order of Operations and Evaluation of C Expression - PowerPoint PPT Presentation

1 / 18
About This Presentation
Title:

Cognitive Tutor for Order of Operations and Evaluation of C Expression

Description:

... Chand, Sergey Sosnovsky Cognitive modeling and Intelligent tutoring Systems. Fall'04 ... restricted DFA to a partial set of C operators. Student Solution ... – PowerPoint PPT presentation

Number of Views:49
Avg rating:3.0/5.0
Slides: 19
Provided by: Adi149
Category:

less

Transcript and Presenter's Notes

Title: Cognitive Tutor for Order of Operations and Evaluation of C Expression


1
Cognitive Tutor for Order of Operations and
Evaluation of C Expression
  • Cognitive Modeling and
  • Intelligent Tutoring Systems

2
Introduction
  • What?
  • Cognitive tutor for order of operation and
    Evaluation of C expressions.
  • Why?
  • Help students learn C expression.
  • Help the human instructor focus on other aspects
    of programming like designing a program.
  • Who?
  • Students learning C as their first programming
    language.

3
Difficulty Factors
  • Sample 1
  • f--c--d-e
  • 1 4 2 5 6 3
  • Sample 2
  • x / y a b
  • 1 2 3

We restricted DFA to a partial set of C operators
4
Student Solution
  • Sample 1
  • f--c--d-e
  • 1 4 2 5 6 3
  • Sample 2
  • x / y a b
  • 1 2 3

5
Insights
  • Students learn order of operations and understand
    the operators simultaneously.
  • Finding order of operation and evaluation of the
    operator are not independent steps while
    evaluating the expression.

6
The Model
  • What we planned
  • Perform lexical analysis of the given expression
    to distinguish between operators and operands.
  • Apply production rules to determine the
    current-operation.
  • Apply production rules to evaluate the current
    operation.
  • What we did
  • Use solution tree for ordering of operations.
  • Determine current operator using production rules
    and predefined solution tree.
  • Evaluate the current operation using production
    rules.

7
The Model
  • Drawbacks of the implementation
  • Solution trees
  • are not generic
  • are not consistent with the cognitive model of
    expert user
  • Lead to incorrect parsing of some problems7 / 4
    5 5 3 - 6
  • Ignored special cases like zero.
  • Students do not evaluate 0a or 0a

8
The Tutor
  • Interface

9
The Tutor
  • Problem 1

10
The Tutor
  • Problem 1
  • Hint 1 for Step 1

11
The Tutor
  • Problem 1
  • Hint 2 for Step 1

12
The Tutor
  • Problem 1
  • Hint 3 for Step 1

13
The Tutor
  • Problem 1
  • Done

14
The Tutor
  • Problem 1
  • Behavior recorder trace

15
The Tutor
  • Problem 2

16
The Tutor
  • Problem 2
  • Buggy message 1 (for int v/s float / )

17
The Tutor
  • Problem 2
  • Buggy message 2 (for and sequence)

18
Questions?
Write a Comment
User Comments (0)
About PowerShow.com