<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Location Based Assignments in Early CS Courses Using BRIDGES Engages Students</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10396364</idno>
					<idno type="doi"></idno>
					<title level='j'>Journal of computing sciences in colleges</title>
<idno>1937-4771</idno>
<biblScope unit="volume">38</biblScope>
<biblScope unit="issue">5</biblScope>					

					<author>Mcquaigue Matthew</author><author>Jay Strahler</author><author>Kalpathi Subramanian</author><author>Erik Saule</author><author>Jamie Payton</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Freshmen and sophomore level courses in computer science are critical to long-term student development and success. At the same time, these courses, such as data structures and algorithms are usually challenging and require significant motivation to keep students engaged. In this work, we present through our BRIDGES system a set of location based assignments that can serve to reinforce core concepts and algorithms by placing them in more meaningful settings and applications, and demonstrate the relevance of computing in the early stages of a student's career. We performed a small pilot study using a subset of these assignments in a special topics course on algorithms, and conducted student surveys after each assignment. The surveys were unanimously positive, and the students enjoyed coding the algorithms as well as the datasets and visualizations associated with the assignments.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>While enrollments in computer science have grown significantly in recent years, future trends indicate a significant need for CS graduates to join the modern workforce <ref type="bibr">[5]</ref>. Future jobs will increasingly be more technical, especially in areas such as AI, vision, machine learning, data science and security. Thus, it is imperative that CS majors possess a strong foundation in their early years to ensure their long-term success; however, foundational courses can be rigorous and not very engaging, and the field has seen significant attrition, especially in the freshmen/sophomore years, and for groups traditionally underrepresented in computing. Engaging majors in the early stages of their CS program with rigorous, yet meaningful and engaging content can provide the means to demonstrate the relevance and possibilities of computing, and help retention.</p><p>As part of the BRIDGES system <ref type="bibr">[6,</ref><ref type="bibr">4]</ref>, we have developed a repository of assignments for early courses in computer science <ref type="bibr">[3]</ref>. We had also presented how these could be used in CS1/CS2 <ref type="bibr">[2]</ref> and algorithm analysis courses <ref type="bibr">[21]</ref>. The BRIDGES API (available in Java, C++ and Python) facilitates the use of real-world datasets in early CS courses and uses visualizations to demonstrate student generated work, while maintaining course rigor.</p><p>In this work we present a class of location based assignments that we have recently developed as part of the BRIDGES assignment repository; these assignments rely on data sources that have location (Lat/Long) information. These assignments have two advantages, (1) they continue to provide highly engaging assignments with visual output of classic CS concepts/algorithms, and (2) students' output can be customized to locations or concepts of their own interest. This gives more flexibility to assignments, and getting away from the 'one size fits all' characteristic of typical course assignments. We report on a pilot study of using these assignments in an algorithms course.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Related Work</head><p>Engagement Strategies. In recent years, a significant amount of effort has focused on strategies to engage and motivate students in early CS courses, in an effort to retain CS majors. Engagement can span many dimensions, involving skills, participation/interaction, emotional and/or performance <ref type="bibr">[11]</ref>. Engagement strategies can be classified as either content-based or based on pedagogical activities. Content based engagement focuses on making the content of the course or associated activities (assignments, lectures, videos, etc) meaningful and relevant. Engagement strategies based on activities include those based on active learning techniques, which in turn could be based on any combination of lab-based instruction, flipped classroom settings, gamification, peer-learning, and use of multimedia content <ref type="bibr">[18,</ref><ref type="bibr">10,</ref><ref type="bibr">12]</ref>.</p><p>Learning Materials and Repositories. Repositories containing learning materials (slides, assignments, videos) are another mechanism to assist instructors find engaging content; these include Nifty Assignment collections <ref type="bibr">[17]</ref>, En-gageCSEdu <ref type="bibr">[13]</ref>, ModelAI <ref type="bibr">[1]</ref>. Some of these tend to include the 'fun' factor, such as those based on games <ref type="bibr">[22]</ref>.</p><p>Location Based Materials Many of the Nifty assignments are location based assignments, such as the N-body simulation <ref type="bibr">[20]</ref>, star chart display <ref type="bibr">[19]</ref>, voting districts and gerrymandering <ref type="bibr">[25,</ref><ref type="bibr">15]</ref>, that lend themselves to nice visualizations that can be highly engaging. Using games and AI as part of assignments also lend themselves to using geometric spaces <ref type="bibr">[7]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Location based Datasets</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Earthquakes -US Geological Survey (USGS)</head><p>USGS records earthquake data <ref type="bibr">[23]</ref> in real-time and makes it available in real time. We have built an interface to gather these earthquake records periodically and store the 10,000 most recent earthquakes in a database. Our BRIDGES system provides an API call to retrieve a desired number of these records as objects in C++, Java or Python. Each earthquake record contains the quake magnitude, location (lat/long and quake area), and epoch time.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">OpenStreet Map -Street Networks, Amenity Data</head><p>OpenStreet Maps is a publicly available resource <ref type="bibr">[16]</ref> providing street networks at multiple resolutions, as well as amenities (schools, hospitals, restaurants, fire stations, etc.). This data, while extremely rich, is also based on contributions by the public and does not guarantee uniform coverage of all areas.</p><p>We downloaded the entire map of North America from GeoFABRIK <ref type="bibr">[8]</ref>. Additional processing included removing extraneous data to save storage. The data was held in 2 parts, one for the road and street data, and the second holds amenity data, such as restaurants, schools, etc.</p><p>In BRIDGES, we can retrieve the OSM street network data by specifying a Lat/Long bounding box; the system then returns the set of vertices and edges that make up the street network. Each vertex contains an id and lat/long information. Edges are specified by the source and destination vertex ids. Amenity data is retrieved through a separate query, by providing the amenity name within a rectangular Lat/Long region.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">City/Country Data</head><p>The city/country data was obtained from GeoNames <ref type="bibr">[9]</ref>. This site provides a single file with every city in the world. Currently, we use only cities in the United States. Each city instance is part of a collection that has a schema containing an id, city, state, country, latitude, longitude, elevation, and population, and time zone attribute. Currently, BRIDGES allows querying this data using a combination of the above attributes; alternately, a Lat/Long bounding box can be specified to extract all the cities contained within the box.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">Elevation Maps and Navigation</head><p>Elevation model data was obtained from NOAA [14] on per query basis, using a Lat/Long bounding box. The data is saved locally to the server for future requests. Utility tools are used to convert the raster data into a more human understandable form for use by end users. Note that the resolution varies depending on the queried region, and is specified as part of the query.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5">US Census</head><p>US Census data, published every 10 years, is available from the US Census bureau <ref type="bibr">[24]</ref>. The data collects data on states, counties, census tracts, block groups and blocks. Basic demographic data such as race and sex are part of the data. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Kernel Density</head><p>In the kernel density problem, a space (here a 2D space) is discretized in cells.</p><p>And there are points that may carry a weight. In the density problem, one counts for each cell the (weighted) number of points in the surrounding of that cell. One can count the number of points within the cell or in proximity of the cell. These maps are common in geography. Using different data lead to different analyses, while being an equivalent assignment from a learning objective standpoint: Population Density. The simplest application of Kernel Density is to compute population density maps using US Census data. One can also use ethnical attribute or age attributes to get a finer picture of US demographics. The census bureau also provide voter registration data which can help further understand voting patterns in the US such as the urban/rural divide.</p><p>Underserved region. Using Amenity data collected by Open Street Map, one can compute density maps for public and private services, such as schools, hospitals, restaurants, grocery stores. This can enable identifying food deserts or communities underserved by local governments.</p><p>Urbanization. Using road data from Open Street Map, kernel density will provide maps of urbanization of a region. Dijkstra's shortest path algorithm on OpenStreeMap data of Minneapolis A classic assignment when using map based data is to compute shortest path. There are a number of shortest path algorithms such as Dijkstra's and Ford Bellman, that are applicable. Shortest Path is also appropriate to discuss artificial intelligence methods with algorithms like A * .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Shortest Path</head><p>Routing within City. GPS routing is a feature students use commonly and they can get the chance to implement their own. One can use the Open Street Map street level data to build a graph and compute shortest path on it. BRIDGES visual attributes can be used to show distance variation from the source, as can be see in Fig. <ref type="figure">2</ref>.</p><p>Mountain Path. The mountain path assignment as written in the Nifty assignment collection <ref type="bibr">[17]</ref> works from an elevation map (a gray scale image) which BRIDGES makes available from NOAA. The task is to find the lowest cost path, from the left end of the image to the right end of the image, where the cost is defined as the sum of difference in elevation between consecutive pixels in the path. The Nifty assignment uses a simple greedy approach to find a path which is suitable in various classes from CS1 to Algorithms. A visualization of such a path can be seen in Fig. <ref type="figure">3</ref>. One can find the optimal path that only ever goes right using a dynamic programming algorithm which is suitable for an Algorithms course. One can also model the image as a graph where each pixel has 8 neighbors and use a shortest path algorithm. Biking/Hiking Paths. One can combine both Open Street Map street level data and elevation data from NOAA to create a graph for cycling and hiking paths. The length of edges in the graph can be adjusted to account for the difficulty of going uphill and the ease of going downhill.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">K-Means Clustering</head><p>K-means clustering is a simple unsupervised method to find clusters in a spatial dataset. A number cluster centroids are distributed randomly initially. Each point in the database is allocated to the region represented by the closest centroid. Then the centroid is updated to be at the barycenter of the points in the region it represents. While k-means clustering is refined further in data mining courses, the naive scheme is suitable for implementation by CS1 students.</p><p>Ring of Fire. Computing K-means cluster on the location of recent earthquakes will highlight geological properties of the Earth; For instance, many earthquakes are located around the Pacific ocean and is known as the Ring of Fire.</p><p>US regions. Computing K-means on the US city map will highlight the structure of the country in a few main region. And it will highlight a known east coast/west coast divide.</p><p>US city zoning. Clustering commercial amenities (from OpenStreetMap) of a particular type will identify commercial zoning in most US city. Alternately, clustering the population of a city using census data will identify residential zoning. The two maps can be compared.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Closest Location Queries</head><p>Given a set of points in a (here 2D) space, a simple query is to find the closest point in the set to a particular location. This form of spatial query is suitable for different levels. At a CS1 level, one can simply put the set in a linear structure, such as a list or an array, and iterate over it to find the closest match. One could also use a uniform partition of the space to accelerate the search. This can be suitable for a project in CS1/CS2. At data structure level, one could do adaptive partitioning such as quad-trees and K-D trees. Students could even implement different strategies and compare their performance. Locating Amenities. With OpenStreetMaps data, one can answer questions such as 'Where is the restaurant that is closest to me?', or in a GPS routing scenario, "what is the street corner closest to my location?" Natural Disaster Risk. With Earthquake data, one can compute for a particular location the closest large earthquake that has been reported.</p><p>Identifying metropolitan areas. Using the city location data, the assignment could aim to identify the closest city of a particular size of a particular location. Fig. <ref type="figure">4</ref> illustrates an example quadtree partitioning on a set of 1000 cities. This can be further used to approximate Voronoi decomposition of the country based on the 1000 largest cities.</p><p>Which census district do I live in? While census districting can be complicated, a student can use location query to identify the closest census district their home is part of and look at the demographics of that district. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.5">Convex Hull</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>on US city data</head><p>Location data can also enable a range of geometric problems. A classic one is to compute the convex hull of a set of points. This is useful for visualization purposes but also as a preprocessing step to compute collisions in a physics engine. Computing the convex hull can be done with a range of methods; Jarvis March is a brute force algorithm suitable for CS1; Divide and Conquer (similar in its analysis to merge sort) and Quick Hull (similar to quick sort) are suitable for algorithm courses.</p><p>Convex Hull of countries and states. One can use the City data to use as a the input to a convex hull algorithm. This enables the student to see how much their country or state looks like their convex hull. A convex hull of US cities can be seen in Fig. <ref type="figure">5</ref>.</p><p>Visualizing gerrymander. Convex Hull can be used on congressional voting districts (extracted from US census data) as an approximation of gerrymandering. Minimum Spanning Trees (MST) are classic chapters in algorithm books and courses with two primary greedy algorithms: Prim's and Kruskal's algorithm. Minimum Spanning tree is often a topic in Algorithms courses. A variant of spanning trees are Steiner Trees that are often used to plan infrastructure project such as train lines, power lines, water lines, optic fibers. However, Steiner trees are often not presented, as the problem is more complicated and does not have an optimal polynomial algorithm.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.6">Minimum Spanning Tree</head><p>Minimum Spanning Tree using City Data. Computing Minimum Spanning tree of city/country data serves as a approximation of infrastructure. Fig. <ref type="figure">6</ref> illustrates the MST of a set of cities in North Carolina.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Pilot Study: Student Reflections/Feedback</head><p>In the fall 2021, a special topics course entitled 'Real World Algorithms' was offered to Junior/Senior CS students at UNC Charlotte for the first time. The course required Data Structures as a prerequisite<ref type="foot">foot_1</ref> . The course is being considered for a more permanent offering as part of our degree concentration. Four of the location based projects detailed in Section 4 and highlighted in Fig. <ref type="figure">1</ref> were included. The course had five students enrolled. Students completed a project/reflection survey after each module.</p><p>Students completed 3 project surveys in the course. The location based projects in the course were part of 2 of the surveys. In particular, it had 2 free form questions:</p><p>&#8226; Identify the essential concept(s) learned by completing the assignment, and indicate why you think that concept may be important to understanding and learning how to program.</p><p>&#8226; Comment on what aspects of the project were interesting, meaningful, engaging (or not)? Also, indicate why you liked or disliked using BRIDGES.</p><p>The surveys were unanimously positive. Students enjoyed coding the algorithms like MST, Convex Hull and Dijkstra's shortest path algorithms as well as the datasets used with the algorithm ('learning the functionality...how to implement Djikstra's algorithms...further increased my confidence in programming', 'greater understanding of geometric structures...how to manipulate them as a data structure'). All students commented positively on the visualization capabilities of BRIDGES ('enjoyed graphically displaying the Convex Hull', 'served as a robust visualization and debugging tool') as it helped them understand the output of these algorithms, which are naturally suited to be visually salient.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Conclusions</head><p>In this work, we presented a class of location based assignments that are highly engaging, visual and can be adopted across the freshmen and sophomore CS courses such as CS1, CS2, Data Structures and Algorithm Analysis. These assignments provide a vital connection to real world applications and problems that will be attractive to CS majors. More importantly, they provide the key advantage of making it fit the interests of students by making it possible to explore such applications to the location or region of their interest. We report preliminary results from an algorithm analysis course that tied classic computer science algorithms to real world applications. Specifically, it focused on coupling traditional algorithms to location based datasets, so as make the course content more meaningful to CS students. A small pilot study of an algorithms course was presented where some of these algorithms were assigned as part of the course. Feedback from students were unanimously positive, in terms of both the course content as well as the use of the BRIDGES system, which facilitated such real world content and visualization capabilities. However, this study had only five students and was not a required course, thus, results will need to be replicated in both a larger course and avoid self-selection bias. We plan to make this course a more regular offering as part of a degree concentration in the coming year and gather and analyze more formal feedback.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>we have only recently begun looking at this dataset for use with BRIDGES.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>Our current program does not contain a separate algorithm analysis course</p></note>
		</body>
		</text>
</TEI>
