Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The code is written in python Write a function row_ruler that consumes a Pointset and a positive integer row number i in the range 0

The code is written in python

Write a function row_ruler that consumes a Pointset and a positive integer row number i in the range 0 i

When using a pointset corresponding to that of points1.txt (and stored in the pointset set1), row_ruler(set1, 0) would return None, and row_ruler(set1, 1) would return verylong.

example of points1.txt:

image text in transcribed

So take the example of points1.txt, for row_ruler(set1, 0), it would return None because there is no features (strings) in row 0 of pointset 1. row_ruler(set1, 1) would return verylong since in row 1 of set1 in point1.txt, "verylong" has the longest string length.

Two samples files have been provided. The contents ofthe sample points1.txt: 1 2 first 2 3 second 1 5 very long 2 4 test. 1 6 test2 The contents of the sample points2.txt: 3 3 a 1 2 b 65 c 2 3 d 1 1 e 1 2 f

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions