Computer Science, asked by harrish2, 8 hours ago

Write a program that will take as input two Web page URLs and find a path of links from one to the other. What is an appropriate search strategy? Is bidirectional search a good idea? Could a search engine be used to implement a predecessor function?

Answers

Answered by ansarianamta984
0

Answer:

The quality of the work you do also changes. It is not enough to understand course material and summarize it on an exam. You will also be expected to seriously engage with new ideas by reflecting on them, analyzing them, critiquing them, making connections, drawing conclusions, or finding new ways of thinking about a given subject. Educationally, you are moving into deeper waters. A good introductory writing course will help you swim.

Table 1.1: High School versus Post-Secondary Assignments summarizes some of the other major differences between high school and university assignments.

Table 1.1 High School versus Post-Secondary Assignments

High School

Post-Secondary

Reading assignments are moderately long. Teachers may set aside some class time for reading and reviewing the material in depth. Some reading assignments may be very long. You will be expected to come to class with a basic understanding of the material.

Teachers often provide study guides and other aids to help you prepare for exams. Reviewing for exams is primarily your responsibility.

Your grade is determined by your performance on a wide variety of assessments, including minor and major assignments. Not all assessments are writing based. Your grade may depend on just a few major assessments. Most assessments are writing based.

Writing assignments include personal writing and creative writing in addition to expository writing. Outside of creative writing courses, most writing assignments are expository.

The structure and format of writing assignments is generally stable over the high school years. Depending on the course, you may be asked to master new forms of writing and follow standards within a particular professional field.

Teachers often go out of their way to identify and try to help students who are performing poorly on exams, missing classes, not turning in assignments, or just struggling with the course. Often teachers will give students many “second chances.” Although teachers want their students to succeed, they may not always realize when students are struggling. They also expect you to be proactive and take steps to help yourself. “Second chances” are less common.

Explanation:

just hope it will help you

Answered by Jasleen0599
0

Yes. This situation benefits from bidirectional search.

C++ PROGRAM CODE

include<stdafx.h>

#include<iostream>

#include<conio.h>

using namespace std;

int s(int a[],int size,int num);

void main()

{ int num,i;

int a[7];

for(i=0;i<=6;i++)

{ cout<<" enter the number=";

cin>>a[i];

}

cout<<"\n\t enter the required no=";

cin>>num;

int size=7;

int save=s(a,size,num);

if(save==-1)

{ cout<<" not found ";

}

else

{cout<<" found "<<a[save]<<" at location "<<save;

}

getch();

int s(int a[],int size,int num)

{ int mid,low,high;

high=size-1;

low=0;

mid=size/2;

while(low!=high)

{ if(a[mid]==num)

{ return mid; }

else

{ if (a[mid]>num)

{ high=mid-1; }

else

{ low=mid+1; }

}

mid=(low+high)/2;

}

if (a[mid]==num)

{ return mid; }

else

{ return-1; }

}

  • A directed graph's bidirectional search technique determines the shortest route between two starting vertex locations. It does two simultaneous searches, one moving forward from the starting point and the other moving backward from the destination, stopping when they converge.
  • The goal of bidirectional search is to determine the shortest path between a fixed start vertex and end vertex by simultaneously performing two graph traversals (BFS). It is a quicker method and cuts down on the amount of time needed to traverse the graph. There are further uses for it as well.

#SPJ2

Similar questions