سؤال في الذكاء الاصطناعي

  • avav

. While driving, which is the best policy?

a. Always put your directional blinker on before turning,

 

Never use your blinker

c. Look in your mirrors and use your blinker only if you observe a car that can observe you?

What kind of reasoning did you need to do to arrive at this policy (logical, goal-based, or utilitybased)? What kind of agent design is necessary to carry out the policy (reflex, goal-based, or utility-based)?

اللي يعرف الجواب يعلمني :(

يرجى الدخول لحسابك أو تسجيل حساب لتستطيع إضافة تعليق
حساب جديد دخول

التعليقات

امممم

السؤال يقول اثناء القياده ما الافضل تشغيل الاشارات الضوئيه دائما قبل تغيير الاتجاه او عدم تشغيلها على الاطلاق او تشغليها وفقط اذا لاحظت وجود سياره اخرى يمكنها ملاحظتك؟

الجزء الاول

  • الاختيار الثانى غير مقبول لهذا نستبعده

-الاختيار الاول والثالث مقبولين لكن يمكنك اعتبار الاختيار الاول يمثل هدر للموارد فانت دائما ستقوم بتشغيل الاشارات حتى مع عدم وجود سياره قريبه

لذلك اميل للاختيار الثالث

الجزء التانى

هنا يسال عن نوعيه التفكير المستخدم ومادام توصلنا للاختيار الثالث فى الجزء السابق بطريقه ترشيد الاستهلاك فالطريقه هى utilitybased

الجزء الثالث

يسال عن نوع ال agent المناسب للتطبيق وهنا افضل التفكير فى السؤال عن مستوى الagent وليس كنوع منفصل وللagents عده مستويات

1- reflex وهو المستوى البدائى الشرطى المنعكس يعتمد على تغيير الجاله الداخليه بناء على البيئه المحيطه update states about environment

2-ال goal-based نفس reflex لكن بزياده القدره على اختيار ردود الفعل بناء على تحقيق او عدم تحقيق الهدف

3- utility-based نفس goal-based لكن بزياده القدره على اختيار افضل او انسب ردود الفعل من حيث ترشيد استهلاك الموارد والقرب من الهدف

من الواضح ان مستوى ال agent هنا كل ما يقوم به هو مجرد تغيير الحاله الداخليه عن وجود سياره قريبه وتنبيهها بتغيير الاتجاه لذلك الاجابه ستكون reflex

هذه الاجابات حسب فهمى ومن الممكن ان تكون خاطئه ويمكنك ايجاد اسباب او وجهات نظر اخرى مثلا فى الجزء الاول يمكنك اعتبار ان تشغيل الاشارات قبل تغيير الاتجاه دائماعلى الرغم من هدره للموارد لكن هو نوع الاحتياط والحذر

سؤال :ما الاصدار الذى لديك من كتاب ai- a modern approach؟

بليز حد يساعدني

Write a program to solve the Knapsack problem using hill climbing algorithm. Your code should contain a method called Knapsack, the method takes two parameters, the first is a 2xN array of integers that represents the items and their weight and value and the second is an integer that represents the maximum weight of the knapsack. Assume that the initial state is an empty Knapsack, and the actions are either putting objects in the Knapsack or swapping objects from in and out of the Knapsack.

Your method should print (on the screen) three lines:

The first one represent the chosen items(indices), the second line gives the total weight of the selected items and the last one represent the total value of the selected items.

An example:

weight 5 3 6 12 7

value 2 3 4 7 1

total weight 20

Output:

0 1 3

20

12

Your code should run in real time.