• Particular Bronze Pip boy

    Particular Bronze Pip boy

    Welcome to your new project. Imagine what you can build here.

    h40mario

    2 years ago

    0 Uses

    1 Comment

    1 Star


  • Variable Coral Pip boy

    Variable Coral Pip boy

    Welcome to your new project. Imagine what you can build here.

    2 years ago

    0 Uses

    1 Comment

    1 Star


  • Honest Maroon Pip boy

    Honest Maroon Pip boy

    Welcome to your new project. Imagine what you can build here.

    2 years ago

    0 Uses

    1 Comment

    1 Star


  • Frantic Plum Pip boy

    Frantic Plum Pip boy

    como puedo corregir este codigo para que funcione en flux.io import time import random import matplotlib.pyplot as plt import io import base64 from fluxio import Flow flow = Flow() @flow.task def linear_search(arr, target): for i in range(len(arr)): if arr[i] == target: return i return -1 @flow.task def binary_search(arr, target): low = 0 high = len(arr) - 1 while low <= high: mid = (low + high) // 2 if arr[mid] == target: return mid elif arr[mid] < target: low = mid + 1 else: high = mid - 1 return -1 @flow.task def measure_time(func, arr, target): start_time = time.time() func(arr, target) end_time = time.time() return end_time - start_time @flow.task def generate_data_and_measure(): sizes = [100, 1000, 5000, 10000, 50000, 100000] linear_times = [] binary_times = [] for size in sizes: arr = random.sample(range(size * 2), size) target = random.choice(arr) sorted_arr = sorted(arr) linear_time = measure_time(linear_search, arr, target) binary_time = measure_time(binary_search, sorted_arr, target) linear_times.append(linear_time) binary_times.append(binary_time) return sizes, linear_times, binary_times @flow.task def plot_results(sizes, linear_times, binary_times): plt.plot(sizes, linear_times, label='Búsqueda Lineal') plt.plot(sizes, binary_times, label='Búsqueda Binaria') plt.xlabel('Tamaño del Array') plt.ylabel('Tiempo de Ejecución (segundos)') plt.title('Análisis de Complejidad Temporal') plt.legend() plt.grid(True) buf = io.BytesIO() plt.savefig(buf, format='png') buf.seek(0) img_str = base64.b64encode(buf.read()).decode('utf-8') plt.close() return img_str @flow.task def main(): sizes, linear_times, binary_times = generate_data_and_measure() img_str = plot_results(sizes, linear_times, binary_times) return img_str if __name__ == "__main__": flow.run(main)

    2 years ago

    0 Uses

    1 Comment

    1 Star


  • Hushed Maroon Pip boy

    Hushed Maroon Pip boy

    TelePacks v2.1 - Routed, Part-Assigned, All Checks Passed

    9 months ago

    0 Uses

    0 Comments

    1 Star


  • Cooperative Harlequin Pip boy

    Cooperative Harlequin Pip boy

    Welcome to your new project. Imagine what you can build here.

    a year ago

    0 Uses

    0 Comments

    1 Star


  • Democratic Plum Pip boy

    Democratic Plum Pip boy

    Welcome to your new project. Imagine what you can build here.

    2 years ago

    0 Uses

    0 Comments

    1 Star


  • Fancy Chocolate Pip boy

    Fancy Chocolate Pip boy

    Welcome to your new project. Imagine what you can build here.

    +

    U

    2 years ago

    0 Uses

    0 Comments

    1 Star


  • Neighbouring Turquoise Pip boy

    Neighbouring Turquoise Pip boy

    0 Uses

    0 Comments

    1 Star


  • Enormous Lavender Pip boy

    Enormous Lavender Pip boy

    0 Uses

    0 Comments

    1 Star


  • Delighted Aquamarine Pip boy

    Delighted Aquamarine Pip boy

    Welcome to your new project. Imagine what you can build here.

    0 Uses

    0 Comments

    1 Star


  • Forthcoming Beige Pip boy

    Forthcoming Beige Pip boy

    Welcome to your new project. Imagine what you can build here.

    0 Uses

    0 Comments

    1 Star


  • Sensible Peach Pip boy

    Sensible Peach Pip boy

    Welcome to your new project. Imagine what you can build here.

    0 Uses

    0 Comments

    1 Star


  • Surrounding Red Pip boy

    Surrounding Red Pip boy

    Welcome to your new project. Imagine what you can build here.

    0 Uses

    0 Comments

    1 Star


  • Cute Blue Pip boy

    Cute Blue Pip boy

    Welcome to your new project. Imagine what you can build here.

    2 years ago

    0 Uses

    0 Comments

    1 Star


  • Shivering Lime Pip boy

    Shivering Lime Pip boy

    Welcome to your new project. Imagine what you can build here.

    0 Uses

    0 Comments

    1 Star


  • Busy Red Pip boy

    Busy Red Pip boy

    Welcome to your new project. Imagine what you can build here.

    0 Uses

    0 Comments

    1 Star


  • Manual Ivory Pip boy

    Manual Ivory Pip boy

    Welcome to your new project. Imagine what you can build here.

    0 Uses

    0 Comments

    1 Star


  • Nasty Yellow Pip boy

    Nasty Yellow Pip boy

    Welcome to your new project. Imagine what you can build here.

    2 years ago

    0 Uses

    0 Comments

    1 Star


  • Supposed Fuchsia Pip boy

    Supposed Fuchsia Pip boy

    Welcome to your new project. Imagine what you can build here.

    0 Uses

    0 Comments

    1 Star


  • Voluntary Lime Pip boy

    Voluntary Lime Pip boy

    Welcome to your new project. Imagine what you can build here.

    0 Uses

    0 Comments

    1 Star


  • Selected Rose Pip boy

    Selected Rose Pip boy

    0 Uses

    0 Comments

    1 Star


  • Confidential Blue Pip boy

    Confidential Blue Pip boy

    Welcome to your new project. Imagine what you can build here.

    0 Uses

    0 Comments

    1 Star


  • Key Violet Pip boy

    Key Violet Pip boy

    Welcome to your new project. Imagine what you can build here.

    0 Uses

    0 Comments

    1 Star


  • Metropolitan Fuchsia Pip boy

    Metropolitan Fuchsia Pip boy

    0 Uses

    0 Comments

    1 Star


Previous

Page 5 of 274

Next